Closed mwouts closed 7 months ago
Currently the jupytext --check or jupytext --pipe commands write the temporary Python files or notebooks to a temp file created with NamedTemporaryFile.
jupytext --check
jupytext --pipe
NamedTemporaryFile
This file is located directly under \tmp\ and this breaks a test involving pytest==8.0.0rc1 (https://github.com/pytest-dev/pytest/issues/11807).
\tmp\
pytest==8.0.0rc1
We should be able to solve this by using TemporaryDirectory instead.
TemporaryDirectory
Currently the
jupytext --check
orjupytext --pipe
commands write the temporary Python files or notebooks to a temp file created withNamedTemporaryFile
.This file is located directly under
\tmp\
and this breaks a test involvingpytest==8.0.0rc1
(https://github.com/pytest-dev/pytest/issues/11807).We should be able to solve this by using
TemporaryDirectory
instead.