BUG: Handle OverflowError by comparing False

instead of raising
This commit is contained in:
Richard Frank
2016-02-01 15:02:15 -05:00
parent b102742f69
commit 28b34f6409
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -232,6 +232,8 @@ class AssetTestCase(TestCase):
self.assertNotEqual(s_23, 23.5)
self.assertNotEqual(s_23, [])
self.assertNotEqual(s_23, None)
# Compare to a value that doesn't fit into a platform int:
self.assertNotEqual(s_23, sys.maxsize + 1)
self.assertLess(s_23, s_24)
self.assertLess(s_23, 24)