diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2010-04-16 10:24:54 -0400 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2010-04-16 10:24:54 -0400 |
commit | c0ec19f2b96ec62b43365c9c8007a3646a7d7169 (patch) | |
tree | 1dd4286cfd65c52551c7cc3afa275bd1e2d83af9 | |
parent | 01c2c860ed291d1e0193715a329d9fb19f140c18 (diff) | |
download | pygi-c0ec19f2b96ec62b43365c9c8007a3646a7d7169.tar.gz pygi-c0ec19f2b96ec62b43365c9c8007a3646a7d7169.tar.xz pygi-c0ec19f2b96ec62b43365c9c8007a3646a7d7169.zip |
return __long__ from the Number class
-rw-r--r-- | tests/test_gi.py | 3 |
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) |