diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-08-08 20:43:45 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-08-08 20:43:45 (GMT) |
commit | a8db37843436dc34b6ea6fa790da50a6db0bb6b7 (patch) | |
tree | 083933fa17fe65795bc862999ebfed29727a7c40 /Lib/test/test_faulthandler.py | |
parent | 96598afac4b576b67503c9658810598d03fe4e4b (diff) | |
download | cpython-a8db37843436dc34b6ea6fa790da50a6db0bb6b7.zip cpython-a8db37843436dc34b6ea6fa790da50a6db0bb6b7.tar.gz cpython-a8db37843436dc34b6ea6fa790da50a6db0bb6b7.tar.bz2 |
Issue #12700: fix test_faulthandler for Mac OS X Lion
Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.
Diffstat (limited to 'Lib/test/test_faulthandler.py')
-rw-r--r-- | Lib/test/test_faulthandler.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py index c8a8030..331dd2e 100644 --- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -112,7 +112,8 @@ faulthandler.enable() faulthandler._read_null() """.strip(), 3, - '(?:Segmentation fault|Bus error)') + # Issue #12700: Read NULL raises SIGILL on Mac OS X Lion + '(?:Segmentation fault|Bus error|Illegal instruction)') def test_sigsegv(self): self.check_fatal_error(""" @@ -192,7 +193,7 @@ faulthandler.enable() faulthandler._read_null(True) """.strip(), 3, - '(?:Segmentation fault|Bus error)') + '(?:Segmentation fault|Bus error|Illegal instruction)') def test_enable_file(self): with temporary_filename() as filename: @@ -203,7 +204,7 @@ faulthandler.enable(output) faulthandler._read_null() """.strip().format(filename=repr(filename)), 4, - '(?:Segmentation fault|Bus error)', + '(?:Segmentation fault|Bus error|Illegal instruction)', filename=filename) def test_enable_single_thread(self): @@ -213,7 +214,7 @@ faulthandler.enable(all_threads=False) faulthandler._read_null() """.strip(), 3, - '(?:Segmentation fault|Bus error)', + '(?:Segmentation fault|Bus error|Illegal instruction)', all_threads=False) def test_disable(self): |