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

Write temporary notebooks to a TemporaryDirectory rather than NamedTemporaryFile #1206

Closed
mwouts opened this issue Jan 13, 2024 · 0 comments · Fixed by #1222
Closed

Write temporary notebooks to a TemporaryDirectory rather than NamedTemporaryFile #1206

mwouts opened this issue Jan 13, 2024 · 0 comments · Fixed by #1222
Milestone

Comments

@mwouts
Copy link
Owner

mwouts commented Jan 13, 2024

Currently the jupytext --check or jupytext --pipe commands write the temporary Python files or notebooks to a temp file created with NamedTemporaryFile.

This file is located directly under \tmp\ and this breaks a test involving pytest==8.0.0rc1 (pytest-dev/pytest#11807).

We should be able to solve this by using TemporaryDirectory instead.

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 a pull request may close this issue.

1 participant