[issue15597] exception __suppress_context__ test failures on OS X ppc systems
New submission from Ned Deily: == CPython 3.3.0b1 (default:efb30bdcfa1e, Aug 8 2012, 15:43:49) [GCC 4.0.1 (Apple Inc. build 5493)] == Darwin-8.11.0-Power_Macintosh-powerpc-32bit big-endian == /private/tmp/test_python_13864 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1) [...] == FAIL: testChainingDescriptors (test.test_exceptions.ExceptionTests) -- Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_exceptions.py, line 432, in testChainingDescriptors self.assertTrue(e.__suppress_context__) AssertionError: False is not true -- Other similar test failures include multiple test cases in test_ipaddress, test_raise, and test_traceback, for example: == FAIL: test_address_errors (test.test_ipaddress.NetworkTestCase_v6) -- Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/ipaddress.py, line 1580, in _ip_int_from_string ip_int |= self._parse_hextet(parts[i]) File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/ipaddress.py, line 1605, in _parse_hextet raise ValueError(Only hex digits permitted in %r % hextet_str) ValueError: Only hex digits permitted in 'axy' During handling of the above exception, another exception occurred: ipaddress.AddressValueError: Only hex digits permitted in 'axy' in '1234:axy::b' During handling of the above exception, another exception occurred: Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_ipaddress.py, line 439, in test_address_errors assertBadAddress(1234:axy::b, Only hex digits) File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_ipaddress.py, line 432, in assertBadAddress self.factory(addr) File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/contextlib.py, line 66, in __exit__ self.gen.throw(type, value, traceback) File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_ipaddress.py, line 50, in assertCleanError self.assertTrue(exc.exception.__suppress_context__) AssertionError: False is not true The same universal build runs without error on an Intel Mac with the same os version. The ppc failures are seen on both PPC OS X 10.5 and 10.4 systems. -- messages: 167734 nosy: benjamin.peterson, ned.deily, pitrou priority: critical severity: normal stage: needs patch status: open title: exception __suppress_context__ test failures on OS X ppc systems type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
Ned Deily added the comment: It appears similar failures are occuring on Sparc platforms (see issue15589) another big-endian platform. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
Changes by Ned Deily n...@acm.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
Benjamin Peterson added the comment: Does this fix it? -- keywords: +patch Added file: http://bugs.python.org/file26731/char.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
STINNER Victor added the comment: __suppress_context__ is a member using T_BOOL type. T_BOOL expects the C type char, whereas the field in the PyBaseExceptionObject is a C int. Attached patch changes the type and should fix the issue. The test fails because writing into the field uses: *(char*)field = value; Which does not work in big endian if the field is a pointer to an int. -- Added file: http://bugs.python.org/file26732/exception.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
Roundup Robot added the comment: New changeset e2df976b8a33 by Benjamin Peterson in branch 'default': use char instead of int to please T_BOOL (closes #15597) http://hg.python.org/cpython/rev/e2df976b8a33 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15597] exception __suppress_context__ test failures on OS X ppc systems
Ned Deily added the comment: The patch does indeed fix all of the __suppress_context__ related test failures previously seen, i.e. test_exceptions, test_ipaddress, test_raise, and test_traceback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15597 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com