We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4033abd commit 9e99be3Copy full SHA for 9e99be3
lib/matplotlib/__init__.py
@@ -1352,7 +1352,14 @@ def _init_tests():
1352
except ImportError:
1353
pass
1354
else:
1355
- faulthandler.enable()
+ # 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()
1363
1364
# The version of FreeType to install locally for running the
1365
# tests. This must match the value in `setupext.py`
0 commit comments