Skip to content

Commit

Permalink
add a note
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 16, 2024
1 parent c870186 commit 968d653
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boa/test/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def pytest_fixture_post_finalizer(fixturedef, request):
warnings.warn("possible bug in titanoboa! bad fixture tracking", stacklevel=1)
return

# there are outstanding bugs in pytest where the finalizers get
# run out of order, so we need to maintain a task list and defer
# execution of out-of-order finalizers until all the finalizers
# that should have come before them get run.
_task_list.add(fid)

while (fid := next(reversed(_fixture_map.keys()), None)) in _task_list:
Expand Down

0 comments on commit 968d653

Please sign in to comment.