Skip to content

Commit eaebd84

Browse files
committed
uncomment stop_twisted_greenlet()
1 parent a82752e commit eaebd84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pytest_twisted.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def init_twisted_greenlet():
124124
_config.external_reactor = True
125125

126126

127-
# def stop_twisted_greenlet():
128-
# if _instances.gr_twisted:
129-
# _instances.reactor.stop()
130-
# _instances.gr_twisted.switch()
127+
def stop_twisted_greenlet():
128+
if _instances.gr_twisted:
129+
_instances.reactor.stop()
130+
_instances.gr_twisted.switch()
131131

132132

133133
class _CoroutineWrapper:

0 commit comments

Comments
 (0)