commit | 88922db77568ead498631379ff87c07a22529b7f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Nov 23 13:17:57 2014 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Nov 23 13:17:57 2014 -0600 |
tree | d2aacad5d8ec14e9a3d267b000b413fae3299222 | |
parent | c6b6ab0caaa2a923965f5948aec719627a819e00 [diff] [blame] |
fix this test when sizeof(long) < sizeof(size_t)
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 42462f4..1e1bdbe 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py
@@ -507,7 +507,7 @@ 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)),