From 72892ef7d8c43b1405bf4c1d5ffe86195df20613 Mon Sep 17 00:00:00 2001 From: Laurie O Date: Fri, 16 Aug 2024 13:10:21 +1000 Subject: [PATCH] Only test Sphinx install in Python >= 3.8 --- tests/test_integration.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 469a64b..9f79e09 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1,5 +1,6 @@ """Test ``proxpi`` server.""" +import sys import logging import posixpath import threading @@ -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):