summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2011-12-14 15:05:16 -0500
committerBarry Warsaw <barry@python.org>2011-12-14 15:05:16 -0500
commit667082d0b4aef9c438a2e7fec89614b5b8ef960a (patch)
tree59e2a97463a621805735b4937f7fb708065daf7d /test
parent11c639e3bd2ca3e6a87f349155dda2acc3cd92ea (diff)
First round of PyInt -> PyLong changes. These are only compatible with Python
2, since there are still some unconditional PyInt calls, which are not valid in Python 3. However, it lays the framework for conditionalizing on Python 3 and using only PyLong in that case. Where it doesn't matter, PyLong is used unconditionally.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-standalone.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test-standalone.py b/test/test-standalone.py
index 04d1e6d..5a86390 100755
--- a/test/test-standalone.py
+++ b/test/test-standalone.py
@@ -29,8 +29,6 @@ run in isolation.
import sys
import os
import unittest
-import time
-from traceback import print_exc
builddir = os.path.normpath(os.environ["DBUS_TOP_BUILDDIR"])
pydir = os.path.normpath(os.environ["DBUS_TOP_SRCDIR"])
@@ -80,7 +78,10 @@ class TestTypes(unittest.TestCase):
self.assertEquals(x, ('a','b','c'))
def test_Byte(self):
- self.assertEquals(types.Byte('x', variant_level=2), types.Byte(ord('x')))
+ self.assertEquals(types.Byte('x', variant_level=2),
+ types.Byte(ord('x')))
+ self.assertEquals(types.Byte(1), 1)
+ self.assertEquals(types.Byte(1L), 1)
def test_ByteArray(self):
self.assertEquals(types.ByteArray(''), '')