Skip to content

Commit 6cdbd9c

Browse files
committed
another try at trio
1 parent 48caeaa commit 6cdbd9c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test = [
6060
"pytest-asyncio>=0.23.5",
6161
"pytest-cov",
6262
"pytest-timeout",
63-
"pytest-trio",
63+
"anyio[trio]",
6464
"pytest>=7.0,<9",
6565
"trio",
6666
]

tests/test_kernelapp.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
from .conftest import MockKernel
1313
from .utils import TemporaryWorkingDirectory
1414

15-
try:
16-
import trio
17-
except ImportError:
18-
trio = None
19-
20-
2115
@pytest.mark.skipif(os.name == "nt", reason="requires ipc")
2216
def test_init_ipc_socket():
2317
app = IPKernelApp(transport="ipc")
@@ -117,8 +111,8 @@ def test_merge_connection_file():
117111
os.remove(cf)
118112

119113

120-
@pytest.mark.trio()
121-
async def test_trio_loop():
114+
@pytest.mark.parametrize("anyio_backend", ["trio"])
115+
async def test_trio_loop(anyio_backend):
122116
app = IPKernelApp(trio_loop=True)
123117

124118
async def trigger_stop():

0 commit comments

Comments
 (0)