Skip to content
Snippets Groups Projects
Commit 69300571 authored by Thibault Saunier's avatar Thibault Saunier :cactus:
Browse files

bitmask: Do not use long() directly with python3

It doesn't exist anymore there
parent fb9401d6
No related branches found
No related tags found
No related merge requests found
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment