Skip to content

Commit fa1989b

Browse files
committed
Skip spin python on Python 3.8
1 parent ef313dd commit fa1989b

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

spin/tests/test_build_cmds.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
from pathlib import Path
66

77
import pytest
8-
from testutil import skip_on_windows, skip_unless_linux, skip_unless_macos, spin, stdout
8+
from testutil import (
9+
skip_on_windows,
10+
skip_py38,
11+
skip_unless_linux,
12+
skip_unless_macos,
13+
spin,
14+
stdout,
15+
)
916

1017
from spin.cmds.util import run
1118

@@ -149,6 +156,7 @@ def test_lldb():
149156
assert "hi" in stdout(p)
150157

151158

159+
@skip_py38 # python command does not run on py38
152160
def test_parallel_builds():
153161
spin("build")
154162
spin("build", "-C", "parallel-build")

spin/tests/testutil.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
not sys.platform.startswith("darwin"), reason="Skipped; platform not macOS"
1818
)
1919

20+
skip_py38 = pytest.mark.skipif(
21+
sys.version_info[:2] == (3, 8), reason="Skipped; Python 3.8"
22+
)
23+
2024

2125
def spin(*args, **user_kwargs):
2226
args = (str(el) for el in args)

0 commit comments

Comments
 (0)