Commit 697def3a authored by Thibault Saunier's avatar Thibault Saunier Committed by Mathieu Duponchelle

bitmask: Do not use long() directly with python3

It doesn't exist anymore there
parent 43cd8737
......@@ -35,6 +35,7 @@ from gi.repository import GLib
if sys.version_info >= (3, 0):
_basestring = str
_callable = lambda c: hasattr(c, '__call__')
long = int
else:
_basestring = basestring
_callable = callable
......
......@@ -396,4 +396,7 @@ class TestBitmask(TestCase):
Gst.init(None)
r = Gst.Bitmask(1 << 5)
self.assertEqual(str(r), '0x20L')
if sys.version_info >= (3, 0):
self.assertEqual(str(r), '0x20')
else:
self.assertEqual(str(r), '0x20L')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment