Skip to content

Commit

Permalink
Fix conftest to treat harness as context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarro committed Apr 15, 2024
1 parent 307ed79 commit 049ccf1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@
@pytest.fixture
def harness():
"""Return a `prefect_test_harness`."""
try:
prefect_test_harness()
finally:
pass
with prefect_test_harness():
yield

0 comments on commit 049ccf1

Please sign in to comment.