Skip to content

Commit 452d703

Browse files
committed
hookwrapper=True
1 parent 227384a commit 452d703

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytest_twisted.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def pytest_addoption(parser):
428428
)
429429

430430

431+
@pytest.hookimpl(hookwrapper=True)
431432
def pytest_configure(config):
432433
"""Identify and install chosen reactor."""
433434
pytest.inlineCallbacks = _deprecate(
@@ -439,6 +440,8 @@ def pytest_configure(config):
439440
recommended='pytest_twisted.blockon',
440441
)(blockon)
441442

443+
yield
444+
442445
reactor_installers[config.getoption("reactor")]()
443446

444447

0 commit comments

Comments
 (0)