8000 Fix inkscape tests by tacaswell · Pull Request #22768 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix inkscape tests #22768

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 2 commits into from
Apr 7, 2022
Merged

Fix inkscape tests #22768

merged 2 commits into from
Apr 7, 2022

Conversation

tacaswell
Copy link
Member

PR Summary

This lead me down a several hour rabbit hole, but on Inkscape 1.1.2 (0a00cf5339, 2022-02-04, custom) I need these patches for the test to run locally. I am not convinced that the version of inkscape this is actually the problem though. I updated on March 3 and I only started having trouble with the tests in the last few days. I'm happy to share my pacman logs if someone wants to chase this down.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

@tacaswell tacaswell added this to the v3.6.0 milestone Apr 1, 2022
for stream in filter(None, [self._proc.stdin,
self._proc.stdout,
self._proc.stderr]):
stream.close()
Copy link
Contributor
@anntzer anntzer Apr 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really a problem, but is it really possible for the process' standard streams to still be open even though the process has terminated? (poll() is not None)
Edit for my personal edification: apparently only communicate() and __exit__() close the streams?

This prevents pytest from failing other test due to auto-closed resources.
Inkscape will fail to create directories in /dev/null, be very unhappy
about this, and fail to convent all of the svg.
@QuLogic QuLogic merged commit f1c3444 into matplotlib:main Apr 7, 2022
@tacaswell tacaswell deleted the fix_inkscape branch April 7, 2022 14:59
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

Successfully merging this pull request may close these issues.

3 participants
0