Commit d46b032
committed
Use per-test temp files in test fixtures
The `filepath_h5mu`/`filepath_hdf5` fixtures were module-scoped, so a shared
file path was reused across tests. Under the template's parallel test runner
(`pytest -n auto`) two workers wrote the same HDF5 file and collided
(`BlockingIOError: unable to lock file`). Scope them per function with unique
`tmp_path` files instead.1 parent 1762501 commit d46b032
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments