[issue18063] m68k struct alignment issue vs. PyException_HEAD
Antoine Pitrou
report at bugs.python.org
Sat May 25 23:23:52 CEST 2013
Antoine Pitrou added the comment:
Ok, can you try applying the following patch:
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
@@ -703,13 +703,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
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18063>
_______________________________________
More information about the Python-bugs-list
mailing list