Skip to content

Commit 7e6cd18

Browse files
committed
Use consistent style when importing the reactor
1 parent 43a7b39 commit 7e6cd18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_twisted.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def pytest_configure(config):
8686
# TODO: why is the parameter needed?
8787
def default_reactor():
8888
global reactor
89-
from twisted.internet import reactor
89+
import twisted.internet.reactor
90+
reactor = twisted.internet.reactor
9091
create_twisted_greenlet()
9192

9293
def qt5_reactor(qapp):

0 commit comments

Comments
 (0)