You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STY: Prefer using pytest temporary path fixtures in tests
Prefer using the `pytest` `tmp_path` fixture in tests over the standard
library `tempfile.TemporaryDirectory()`.
In the previous implementation, the context was ensuring that the memmap
files did not live past the context, failing to check anything that the
`trx` function at issue would do in terms of the file survival. Since
`close_or_delete_mmap` does not actually delete the file, and
`test_close_or_delete_mmap_with_mmap_attr` actually checks that the
memmap has been closed, this patch set checks that the file is still
present after calling the function; `pytest` takes care of deleting the
file once the testing function has finished its execution.
Left behind in commit 25cc109.
0 commit comments