Conversation
`tempfile.mktemp()` does not clean up after itself
|
For pytest, you want to use the fixtures for this. I’ll help |
|
OK, here we go. Ended up being a major restructuring, since to do this right, we need to override the But now all the scoping is done by pytest, so it cleans up, and the arrays aren’t created in pytests’ collection phase anymore (should speed that up by a lot and therefore help with IDE performance as well) |
ilan-gold
left a comment
There was a problem hiding this comment.
Awesome paradigm to override, I have found myself in this tricky situation of param dependencies before
|
Yeah, that’s how pytest is intended to work. Isaac always wanted flat test file directories (I don’t think I’ve ever heard a reason) so we don’t use it much. |
| ) -> zarr.Array: | ||
| return zarr.create( | ||
| (axis_size_,) * dimensionality, | ||
| store=LocalStore(root=tmp_path / ".zarr"), |
There was a problem hiding this comment.
Don't think so since this package doesn't support that kind of store crossing into rust
tempfile.mktemp()does not clean up after itself, and I could see my/tmpgrowing as I ran a few tests