Thanks to visit codestin.com Credit goes to github.com
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.
2 parents d6f562e + 9e99be3 commit b18970dCopy full SHA for b18970d
lib/matplotlib/__init__.py
@@ -1351,7 +1351,14 @@ def _init_tests():
1351
except ImportError:
1352
pass
1353
else:
1354
- faulthandler.enable()
+ # CPython's faulthandler since v3.6 handles exceptions on Windows
1355
+ # https://bugs.python.org/issue23848 but until v3.6.4 it was
1356
+ # printing non-fatal exceptions https://bugs.python.org/issue30557
1357
+ import platform
1358
+ if not (sys.platform == 'win32' and
1359
+ (3, 6) < sys.version_info < (3, 6, 4) and
1360
+ platform.python_implementation() == 'CPython'):
1361
+ faulthandler.enable()
1362
1363
# The version of FreeType to install locally for running the
1364
# tests. This must match the value in `setupext.py`
0 commit comments