Skip to content

Commit 53bcdaf

Browse files
authored
Handle asyncio in new test
1 parent 9b39813 commit 53bcdaf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing/test_basic.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,13 @@ async def test_self_isinstance(self, foo):
10001000

10011001
def test_import_pytest_twisted_in_conftest_py_not_a_problem(testdir, cmd_opts):
10021002
conftest_file = """
1003+
import pytest
10031004
import pytest_twisted
1005+
1006+
1007+
@pytest.hookimpl(tryfirst=True)
1008+
def pytest_configure(config):
1009+
pytest_twisted._use_asyncio_selector_if_required(config=config)
10041010
"""
10051011
testdir.makeconftest(conftest_file)
10061012
test_file = """

0 commit comments

Comments
 (0)