Skip to content

Commit dad88dc

Browse files
authored
oops
1 parent 7c88687 commit dad88dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_django/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ def _assert_num_queries_context(
704704
]:
705705
verbose = config.getoption("verbose") > 0
706706
with context:
707+
yield context
707708
num_performed = len(context)
708709
if exact:
709710
failed = num != num_performed
@@ -723,7 +724,6 @@ def _assert_num_queries_context(
723724
else:
724725
msg += " (add -v option to show queries)"
725726
pytest.fail(msg)
726-
yield context
727727

728728

729729
@pytest.fixture()

0 commit comments

Comments
 (0)