Skip to content

Use TemporaryFilename contextmanager for tests

This PR introduces a new TemporaryFilename context manager for the test suite, which resolves an error testing under Windows where open files cannot be written to via their file name. The new context manager just creates a new file path as a str and returns that, cleaning up that file path upon exit, if the file was written.

This isn't threadsafe, but is good enough for testing purposes.

Merge request reports