Skip to content

Commit db1966f

Browse files
committed
Restore scope="module" for subprocess_kernels_client.
1 parent 0073504 commit db1966f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def kernel_name(request):
7979
return request.param
8080

8181

82-
@pytest.fixture
82+
@pytest.fixture(scope="module")
8383
async def subprocess_kernels_client(anyio_backend, tmp_path_factory, kernel_name: KernelName):
8484
"""Starts a kernel in a subprocess and returns an AsyncKernelCient that is connected to it.
8585

tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class ExecuteContentType(TypedDict):
3535

3636
def clear_kernel():
3737
"Clear the kernel so it can be started fresh."
38-
if kernel := Kernel._instance:
38+
if kernel := Kernel._instance: # pyright: ignore[reportPrivateUsage]
3939
kernel.stop()
40-
Kernel._instance = None
40+
Kernel._instance = None # pyright: ignore[reportPrivateUsage]
4141
AsyncInteractiveShell.clear_instance()
4242
Caller.stop_all()
4343

0 commit comments

Comments
 (0)