MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_read_null

Method test_read_null

Lib/test/test_faulthandler.py:171–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 @unittest.skipIf(sys.platform.startswith('aix'),
170 "the first page of memory is a mapped read-only on AIX")
171 def test_read_null(self):
172 if not MS_WINDOWS:
173 self.check_fatal_error("""
174 import faulthandler
175 faulthandler.enable()
176 faulthandler._read_null()
177 """,
178 3,
179 # Issue #12700: Read NULL raises SIGILL on Mac OS X Lion
180 '(?:Segmentation fault'
181 '|Bus error'
182 '|Illegal instruction)')
183 else:
184 self.check_windows_exception("""
185 import faulthandler
186 faulthandler.enable()
187 faulthandler._read_null()
188 """,
189 3,
190 'access violation')
191
192 @skip_segfault_on_android
193 def test_sigsegv(self):

Callers

nothing calls this directly

Calls 2

check_fatal_errorMethod · 0.95

Tested by

no test coverage detected