Skip to content

Commit ff959ea

Browse files
committed
use python -m pytest
1 parent 77ace96 commit ff959ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_releaser/lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os.path as osp
55
import re
66
import shutil
7+
import sys
78
import uuid
89
from datetime import datetime
910
from glob import glob
@@ -48,7 +49,7 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
4849
"""Check URLs for HTML-containing files."""
4950
cache_dir = osp.expanduser(cache_file).replace(os.sep, "/")
5051
os.makedirs(cache_dir, exist_ok=True)
51-
cmd = "pytest --noconftest --check-links --check-links-cache "
52+
cmd = f"{sys.executable} -m pytest --noconftest --check-links --check-links-cache "
5253
cmd += f"--check-links-cache-expire-after {links_expire} "
5354
cmd += "--disable-warnings --quiet "
5455
cmd += f"--check-links-cache-name {cache_dir}/check-release-links "

0 commit comments

Comments
 (0)