bitmask: Do not use long() directly with python3
It doesn't exist anymore there
This commit is contained in:
parent
fb9401d6e9
commit
693005716e
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user