Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9e99be3

Browse filesBrowse files
committed
TST: Disable faulthandler on Windows if CPython 3.6-3.6.3
1 parent 4033abd commit 9e99be3
Copy full SHA for 9e99be3

File tree

Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,14 @@ def _init_tests():
13521352
except ImportError:
13531353
pass
13541354
else:
1355-
faulthandler.enable()
1355+
# CPython's faulthandler since v3.6 handles exceptions on Windows
1356+
# https://bugs.python.org/issue23848 but until v3.6.4 it was
1357+
# printing non-fatal exceptions https://bugs.python.org/issue30557
1358+
import platform
1359+
if not (sys.platform == 'win32' and
1360+
(3, 6) < sys.version_info < (3, 6, 4) and
1361+
platform.python_implementation() == 'CPython'):
1362+
faulthandler.enable()
13561363

13571364
# The version of FreeType to install locally for running the
13581365
# tests. This must match the value in `setupext.py`

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.