Skip to content

Commit 6be58e3

Browse files
committed
A few assertions
1 parent e781947 commit 6be58e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch_python_docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030
# -L: follow redirect
3131
# -f: fail fast on HTTP error
3232
subprocess.run(["curl", "-sSLf", url, "--output", outfile], cwd=HERE).check_returncode()
33+
assert outfile.is_file()
3334

3435
print(f"Extracting {outfile}")
3536
outdir = HERE / f"python-{major}.{minor}-docs-html"
3637
if (outdir / "index.html").is_file():
3738
print(f"{outdir}/index.html already exists")
3839
else:
3940
subprocess.run(["tar", "vxf", outfile], cwd=HERE).check_returncode()
41+
assert (outdir / "index.html").is_file()
4042

4143
if parsed.serve:
4244
# Use a different port from 8000 to avoid conflicting with other

0 commit comments

Comments
 (0)