Make unit test for large DateType work on 32-bit platforms

This commit is contained in:
Adam Holmberg
2015-05-11 14:41:18 -05:00
parent b8c3f2ff4b
commit 5a235c46ff

View File

@@ -336,7 +336,7 @@ class TypeTests(unittest.TestCase):
# beyond 32b
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(2242, 3, 16, 12, 56, 32))
# less than epoc (PYTHON-119)
expected = -770172256