Skip to content

Commit eda6c44

Browse files
committed
Update blockon in hook test
1 parent 4cfec76 commit eda6c44

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

testing/test_basic.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import sys
44

5-
import pytest
6-
75

86
def test_fail_later(testdir):
97
testdir.makepyfile("""
@@ -108,13 +106,13 @@ def test_MAIN():
108106
assert outcomes.get("passed") == 1
109107

110108

111-
@pytest.mark.skip
112-
def test_blocon_in_hook(testdir):
109+
def test_blockon_in_hook(testdir):
113110
testdir.makeconftest("""
114111
import pytest_twisted as pt
115112
from twisted.internet import reactor, defer
116113
117114
def pytest_configure(config):
115+
pt.init_reactor()
118116
d = defer.Deferred()
119117
reactor.callLater(0.01, d.callback, 1)
120118
pt.blockon(d)

0 commit comments

Comments
 (0)