summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-25 21:48:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-25 21:48:15 (GMT)
commit1256f1f438503530d9dcf2790f7ff5b4a08d85f3 (patch)
tree0834548c0c4b49dc591fe2076ea45a73f5844ad5 /Lib/test/test_sys.py
parenta15b95536ffaabf3f2e047e6091bed9ff4c23fed (diff)
parent80bc00f582470536508f71ce1e08cc5bdb57e556 (diff)
downloadcpython-1256f1f438503530d9dcf2790f7ff5b4a08d85f3.zip
cpython-1256f1f438503530d9dcf2790f7ff5b4a08d85f3.tar.gz
cpython-1256f1f438503530d9dcf2790f7ff5b4a08d85f3.tar.bz2
Issue #18063: fix some struct specifications in the tests for sys.getsizeof().
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 4749f24..93b9f8c 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -735,13 +735,13 @@ class SizeofTest(unittest.TestCase):
class C(object): pass
check(C.__dict__, size('P'))
# BaseException
- check(BaseException(), size('5Pi'))
+ check(BaseException(), size('5Pb'))
# UnicodeEncodeError
- check(UnicodeEncodeError("", "", 0, 0, ""), size('5Pi 2P2nP'))
+ check(UnicodeEncodeError("", "", 0, 0, ""), size('5Pb 2P2nP'))
# UnicodeDecodeError
- check(UnicodeDecodeError("", b"", 0, 0, ""), size('5Pi 2P2nP'))
+ check(UnicodeDecodeError("", b"", 0, 0, ""), size('5Pb 2P2nP'))
# UnicodeTranslateError
- check(UnicodeTranslateError("", 0, 1, ""), size('5Pi 2P2nP'))
+ check(UnicodeTranslateError("", 0, 1, ""), size('5Pb 2P2nP'))
# ellipses
check(Ellipsis, size(''))
# EncodingMap
@@ -883,7 +883,7 @@ class SizeofTest(unittest.TestCase):
samples = ['1'*100, '\xff'*50,
'\u0100'*40, '\uffff'*100,
'\U00010000'*30, '\U0010ffff'*100]
- asciifields = "nniP"
+ asciifields = "nnbP"
compactfields = asciifields + "nPn"
unicodefields = compactfields + "P"
for s in samples: