Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix worker file handles being held during test runtime (#18)
* Fix worker file handles being held during test runtime `tempfile.mkstemp` is creating a file handle which is never closed. This doesn't matter on linux, but when running these tests on Windows machines, will cause an `OSError` when trying to remove the files. This fixes the problem by using `mktemp` instead, which only returns a name, and then using `Path.touch()` to create the file but not keep an open handle. * Fix calling os.remove inside an open() context This also causes errors on Windows, and for good reason. De-denting these lines should fix the problem.
- Loading branch information