Commit 88922db7 authored by Benjamin Peterson's avatar Benjamin Peterson

fix this test when sizeof(long) < sizeof(size_t)

parent c6b6ab0c
......@@ -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)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment