Skip to content

Commit 16d4b69

Browse files
committed
Fix kernelspec path in tests
1 parent d2ec39e commit 16d4b69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_kernel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import asyncio
44
import signal
55
import re
6+
from pathlib import Path
67
from textwrap import dedent
78

89
import pytest
910
from kernel_driver import KernelDriver # type: ignore
1011

1112

1213
TIMEOUT = 5
13-
KERNELSPEC_PATH = os.environ["CONDA_PREFIX"] + "/share/jupyter/kernels/akernel/kernel.json"
14+
KERNELSPEC_PATH = str(Path(sys.prefix) / "share" / "jupyter" / "kernels" / "akernel" / "kernel.json")
1415

1516

1617
ANSI_ESCAPE = re.compile(r"\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])")

0 commit comments

Comments
 (0)