Skip to content
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

Prevent test suite from generating matplotlib figures using X11-based backend #118

Open
2 tasks
fsaad opened this issue Oct 25, 2017 · 3 comments
Open
2 tasks

Comments

@fsaad
Copy link
Collaborator

fsaad commented Oct 25, 2017

Running the test suite using ./check.sh -s -vvv causes matplotlib figures to pop up, which need to be closed manually for the test to proceed.

  • Determine which code is producing the figures.
  • Use the 'agg' backend in those modules.
@axch
Copy link
Contributor

axch commented Oct 25, 2017

I don't think the popping up is a function of the backend so much as something or other calling show() instead of writing figures to files. However, 'agg' is a good idea anyway, because it allows running tests that write figures to files even if the machine has no display connected.

@fsaad
Copy link
Collaborator Author

fsaad commented Oct 25, 2017

Sounds right, although with the agg backend show() has no blocking effect as far as I know.

@axch
Copy link
Contributor

axch commented Oct 25, 2017

You may be right. I actually don't remember ever drawing a figure in agg and trying to show() it.

@fsaad fsaad changed the title Prevent test suite from generating matplotlib figures using X11-basd backend Prevent test suite from generating matplotlib figures using X11-based backend Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants