Skip to content

Commit

Permalink
Only test Sphinx install in Python >= 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink committed Aug 16, 2024
1 parent cea1b84 commit 72892ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test ``proxpi`` server."""

import sys
import logging
import posixpath
import threading
Expand Down Expand Up @@ -63,9 +64,10 @@ def test_pip_download(server, tmp_path):
contents = list((tmp_path / "dest2").iterdir())
print(contents)
assert any("jinja2" in p.name.lower() for p in contents)
subprocess.run(
[*args, "--dest", str(tmp_path / "dest3"), "sphinx == 7.0.1"], check=True
)
if sys.version_info >= (3, 8):
subprocess.run(
[*args, "--dest", str(tmp_path / "dest3"), "sphinx == 7.0.1"], check=True
)


def test_list(server):
Expand Down

0 comments on commit 72892ef

Please sign in to comment.