]> granicus.if.org Git - python/commit
bpo-30125: disable faulthandler in ctypes test_SEH (#1237) (#1343)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 28 Apr 2017 14:06:48 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2017 14:06:48 +0000 (16:06 +0200)
commite005dd9a6da7dfa34f47a6989a7e0a6b1ad04949
tree400093b355d05e2b087a103e0cf34f17548ac9d3
parentcb21f5f3d2005b891df0b76e3fc4d4676e285f21
bpo-30125: disable faulthandler in ctypes test_SEH (#1237) (#1343)

Disable faulthandler to run test_SEH() of test_ctypes to prevent the
following log with a traceback:

    Windows fatal exception: access violation

Add support.disable_faulthandler() context manager.
(cherry picked from commit a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d)
Lib/ctypes/test/test_win32.py
Lib/test/support/__init__.py