Skip to content

Commit 6b2a2e0

Browse files
committed
try to handle warnings
1 parent df1f557 commit 6b2a2e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyter_releaser/lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
5454
python = sys.executable.replace(os.sep, "/")
5555
cmd = f"{python} -m pytest --noconftest --check-links --check-links-cache "
5656
cmd += f"--check-links-cache-expire-after {links_expire} "
57-
cmd += "--disable-warnings --quiet "
57+
cmd += "--quiet "
5858
cmd += "-raXs --color=yes "
5959
cmd += f"--check-links-cache-name {cache_dir}/check-release-links "
6060
# do not run doctests, since they might depend on other state.
@@ -92,13 +92,13 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
9292
for f in files:
9393
file_cmd = cmd + f' "{f}"'
9494
try:
95-
util.log(f"Checking {f}...")
95+
util.log(f"\nC{f}...")
9696
util.run(file_cmd, shell=False, echo=False)
9797
except Exception as e:
9898
# Return code 5 means no tests were run (no links found)
9999
if e.returncode != 5:
100100
try:
101-
util.log(f"Rechecking {f}...")
101+
util.log(f"{f} (second attempt)...")
102102
util.run(file_cmd + " --lf", shell=False, echo=False)
103103
except Exception:
104104
fails += 1

0 commit comments

Comments
 (0)