[Python-checkins] cpython (2.7): fix this test when sizeof(long) < sizeof(size_t)
benjamin.peterson
python-checkins at python.org
Sun Nov 23 20:18:12 CET 2014
https://hg.python.org/cpython/rev/a69da17e7060
changeset: 93556:a69da17e7060
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Sun Nov 23 13:17:57 2014 -0600
summary:
fix this test when sizeof(long) < sizeof(size_t)
files:
Lib/test/test_sys.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- 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)),
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list