summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2010-04-16 10:24:54 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2010-04-16 10:24:54 -0400
commitc0ec19f2b96ec62b43365c9c8007a3646a7d7169 (patch)
tree1dd4286cfd65c52551c7cc3afa275bd1e2d83af9
parent01c2c860ed291d1e0193715a329d9fb19f140c18 (diff)
downloadpygi-c0ec19f2b96ec62b43365c9c8007a3646a7d7169.tar.gz
pygi-c0ec19f2b96ec62b43365c9c8007a3646a7d7169.tar.xz
pygi-c0ec19f2b96ec62b43365c9c8007a3646a7d7169.zip
return __long__ from the Number class
-rw-r--r--tests/test_gi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 89dfe87..200c15c 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -27,6 +27,9 @@ class Number(object):
def __int__(self):
return int(self.value)
+ def __long__(self):
+ return long(self.value)
+
def __float__(self):
return float(self.value)