Skip to content

Commit 85e76de

Browse files
committed
fix examples test
1 parent dc20cbc commit 85e76de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/test/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ..factoradic import test
99
from ..print_primes import test_prime_stream
1010

11-
EXAMPLES_DIR = Path(__file__).parent.parent
11+
TS_DIR = Path(__file__).parent.parent.parent
1212

1313
test_prime_stream()
1414
test()
@@ -18,11 +18,11 @@ def _get_nth_prime(num: int) -> int:
1818
"""Run nth_prime.sh."""
1919
return int(
2020
run( # nosec
21-
["./nth_prime.sh", str(num)],
21+
["./examples/nth_prime.sh", str(num)],
2222
check=True,
2323
stdout=PIPE,
2424
shell=False,
25-
cwd=EXAMPLES_DIR,
25+
cwd=TS_DIR,
2626
).stdout
2727
)
2828

0 commit comments

Comments
 (0)