-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest fixtures are cached by default. That's not ideal for us, since we want to clean up and re-init AMReX and its memory arenas between tests. Thus, we now create a multifab fixture that is just a generator, so that the returned/yielded object can be cached - but the generated MultiFab is actually destroyed as we would expect once the test finishes.
- Loading branch information
Showing
2 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters