We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
restore
unblock
1 parent 259fb85 commit 740ab35Copy full SHA for 740ab35
pytest_django/plugin.py
@@ -477,10 +477,10 @@ def get_order_number(test: pytest.Item) -> int:
477
478
479
def pytest_unconfigure(config: pytest.Config) -> None:
480
- if blocking_manager_key not in config.stash:
481
- return
482
- blocking_manager = config.stash[blocking_manager_key]
483
- blocking_manager.unblock()
+ # Undo the block() in _setup_django().
+ if blocking_manager_key in config.stash:
+ blocking_manager = config.stash[blocking_manager_key]
+ blocking_manager.restore()
484
485
486
@pytest.fixture(autouse=True, scope="session")
0 commit comments