diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-30 11:54:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-30 11:54:14 (GMT) |
commit | 5083828d65b6eb617d4333a1c0c4c9b7c3f452a6 (patch) | |
tree | d00ab83834e6fb85362f52319ea84a2da77de7e7 /Lib/test/test_faulthandler.py | |
parent | 9db521c4a8216e9fb0af1c2dfff08f077f5eaf9c (diff) | |
download | cpython-5083828d65b6eb617d4333a1c0c4c9b7c3f452a6.zip cpython-5083828d65b6eb617d4333a1c0c4c9b7c3f452a6.tar.gz cpython-5083828d65b6eb617d4333a1c0c4c9b7c3f452a6.tar.bz2 |
faulthandler: test_gil_released() now uses _sigsegv() instead of _read_null(),
because _read_null() cannot be used on AIX. On AIX, reading from NULL is
allowed: the first page of memory is a mapped read-only on AIX.
Diffstat (limited to 'Lib/test/test_faulthandler.py')
-rw-r--r-- | Lib/test/test_faulthandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py index 97dffd2..8dcefe4 100644 --- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -184,10 +184,10 @@ class FaultHandlerTests(unittest.TestCase): self.check_fatal_error(""" import faulthandler faulthandler.enable() - faulthandler._read_null(True) + faulthandler._sigsegv(True) """, 3, - '(?:Segmentation fault|Bus error|Illegal instruction)') + 'Segmentation fault') def test_enable_file(self): with temporary_filename() as filename: |