Skip to content

Use PYTHONFAULTHANDLER to switch on the Python fault handler. #13937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Apr 12, 2019

We don't need custom code in test() or a pytest plugin to do so.

(That variable is already set in travis.yml.)

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

We don't need custom code in test() or a pytest plugin to do so.

(That variable is already set in travis.yml.)
@tacaswell tacaswell added this to the v3.2.0 milestone Apr 12, 2019
@tacaswell
Copy link
Member

What is the harm of turning it on in the test suite? It seems like something we want by default when developres run it on their own machines.

@anntzer
Copy link
Contributor Author

anntzer commented Apr 15, 2019

I think that's a bit like asking why Python or pytest don't turn on faulthandler by default. (As mentioned some time ago, I actually set $PYTHONFAULTHANDER=1 in my ~/.profile so it's always on for me, but I assume(?) there are good reasons why this is not a good idea in all cases? Note, also, that setting the environment variable globally works, well, for any project you want to work on instead of having to add faulthandler-setup code to matplotlib, to numpy, to scipy, etc.)

Not a huge deal anyways, though we can at least remove pytest-faulthandler from travis_all as that's clearly redundant with the setup code in test() :)

@dopplershift dopplershift merged commit f0eac06 into matplotlib:master Aug 26, 2019
@anntzer anntzer deleted the faultless branch August 26, 2019 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants