Don't use 'long' in unit tests.

breaks python 3
This commit is contained in:
Adam Holmberg
2014-12-10 16:12:32 -06:00
parent 4f613a9a34
commit 7e09f19e08

View File

@@ -201,7 +201,7 @@ class TypeTests(unittest.TestCase):
self.assertEqual(DateType.deserialize(int64_pack(1000 * expected), 0), datetime.datetime.utcfromtimestamp(expected)) self.assertEqual(DateType.deserialize(int64_pack(1000 * expected), 0), datetime.datetime.utcfromtimestamp(expected))
# beyond 32b # beyond 32b
expected = long(2**33) expected = 2**33
self.assertEqual(DateType.deserialize(int64_pack(1000 * expected), 0), datetime.datetime.utcfromtimestamp(expected)) self.assertEqual(DateType.deserialize(int64_pack(1000 * expected), 0), datetime.datetime.utcfromtimestamp(expected))
# less than epoc (PYTHON-119) # less than epoc (PYTHON-119)