Skip to content

Commit a82752e

Browse files
authored
Add pytest_unconfigure() to call stop_twisted_greenlet()
1 parent 74b152a commit a82752e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytest_twisted.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ def pytest_configure(config):
555555
reactor_installers[config.getoption("reactor")]()
556556

557557

558+
def pytest_unconfigure(config):
559+
stop_twisted_greenlet()
560+
561+
558562
def _use_asyncio_selector_if_required(config):
559563
# https://twistedmatrix.com/trac/ticket/9766
560564
# https://github.com/pytest-dev/pytest-twisted/issues/80

0 commit comments

Comments
 (0)