Skip to content

Commit 9e3b865

Browse files
committed
skip test_requirements if not python3.8
1 parent f05afe1 commit 9e3b865

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import subprocess
2+
import sys
3+
4+
import pytest
5+
6+
PYTHON_VERSION = float(f"{sys.version_info.major}.{sys.version_info.minor}")
27

38

49
def test_invoke_list():
@@ -8,6 +13,7 @@ def test_invoke_list():
813
assert return_code == 0
914

1015

16+
@pytest.mark.skipif(reason="Minor marker differences", condition=PYTHON_VERSION != 3.8)
1117
def test_requirements_txt():
1218
"""Validate that requirements.txt and requirements-dev.txt
1319
are up2date with Pipefile"""

0 commit comments

Comments
 (0)