summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-23 13:17:57 -0600
committerBenjamin Peterson <benjamin@python.org>2014-11-23 13:17:57 -0600
commitd743aa6022082616462064b56606a282afe0efb6 (patch)
tree0eef7dae83b13d7c066a2a2dd6d08c9e7c6fe98e
parenta6eb5ff3eee515f6a800f3a65e3e4a7ffbde7eb4 (diff)
downloadcpython-d743aa6022082616462064b56606a282afe0efb6.tar.gz
fix this test when sizeof(long) < sizeof(size_t)
-rw-r--r--Lib/test/test_sys.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 42462f4117..1e1bdbe6f3 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -507,7 +507,7 @@ class SizeofTest(unittest.TestCase):
sentinel = ["sentinel"]
self.assertIs(sys.getsizeof(InvalidSizeof(), sentinel), sentinel)
- class OverflowSizeof(int):
+ class OverflowSizeof(long):
def __sizeof__(self):
return int(self)
self.assertEqual(sys.getsizeof(OverflowSizeof(sys.maxsize)),