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.
1 parent 7a69492 commit 57fff05Copy full SHA for 57fff05
pytest_twisted.py
@@ -400,9 +400,14 @@ def init_asyncio_reactor():
400
401
def _install_reactor(reactor_installer, reactor_type):
402
"""Install the specified reactor and create the greenlet."""
403
- try:
+ # TODO: maybe fix this in qt5reactor? btw, it avoids creating a second
404
+ # qt5reactor.core.QtEventReactor and this somehow fixes the hang
405
+ # that showed up in 5.15.0.
406
+ # try:
407
+ if 'twisted.internet.reactor' not in sys.modules:
408
reactor_installer()
- except error.ReactorAlreadyInstalledError:
409
+ # except error.ReactorAlreadyInstalledError:
410
+ else:
411
import twisted.internet.reactor
412
413
if not isinstance(twisted.internet.reactor, reactor_type):
0 commit comments