Skip to content

Commit 4fe8fa8

Browse files
authored
.
1 parent 33b91d6 commit 4fe8fa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_django/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def _assert_num_queries(
703703
conn = default_conn
704704

705705
with CaptureQueriesContext(conn) as context:
706-
yield _assert_num_queries_context(
706+
yield from _assert_num_queries_context(
707707
config=config, context=context, num=num, exact=exact, info=info
708708
)
709709

@@ -718,7 +718,7 @@ def _assert_num_queries_all_db(
718718
"""A recreation of pytest-django's assert_num_queries that works with all databases in settings.Databases."""
719719

720720
with CaptureAllConnectionsQueriesContext() as context:
721-
yield _assert_num_queries_context(
721+
yield from _assert_num_queries_context(
722722
config=config, context=context, num=num, exact=exact, info=info
723723
)
724724

0 commit comments

Comments
 (0)