Skip to content

Commit 2eb93a0

Browse files
author
y_bilopolov
committed
remove init function from pytest namespace
1 parent 4892208 commit 2eb93a0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pytest_twisted.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ def inlineCallbacks(fun, *args, **kw):
3333

3434

3535
def pytest_namespace():
36-
return dict(
37-
inlineCallbacks=inlineCallbacks,
38-
blockon=blockon,
39-
init_twisted_greenlet=init_twisted_greenlet
40-
)
36+
return dict(inlineCallbacks=inlineCallbacks, blockon=blockon)
4137

4238

4339
def init_twisted_greenlet():
@@ -61,7 +57,7 @@ def pytest_addhooks(pluginmanager):
6157
@pytest.fixture(scope="session", autouse=True)
6258
def twisted_greenlet(request):
6359
request.addfinalizer(stop_twisted_greenlet)
64-
return init_twisted_greenlet()
60+
return gr_twisted
6561

6662

6763
def _pytest_pyfunc_call(pyfuncitem):

0 commit comments

Comments
 (0)