From: Benjamin Peterson Date: Sun, 23 Nov 2014 19:17:57 +0000 (-0600) Subject: fix this test when sizeof(long) < sizeof(size_t) X-Git-Tag: v2.7.9rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88922db77568ead498631379ff87c07a22529b7f;p=python fix this test when sizeof(long) < sizeof(size_t) --- 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)),