Skip to content

Commit f20ff8a

Browse files
author
Cody D'Ambrosio
committed
fix make and parallel safety
1 parent 41f2cb8 commit f20ff8a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
test:
2-
uv run tox run-parallel -e py312, subtests
2+
uv run tox run-parallel -e py312,subtests

tests/test_subtests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ def test_subtests(subtests):
4040
assert i % 2 == 0
4141
"""
4242
)
43-
testdir.runpytest_subprocess("--tap-combined")
44-
testresults = testdir.tmpdir.join("testresults.tap")
43+
testdir.runpytest_subprocess("--tap-outdir", "subtest-results", "--tap-combined")
44+
outdir = testdir.tmpdir.join("subtest-results")
45+
testresults = outdir.join("testresults.tap")
4546
assert testresults.check()
4647
actual_results = [
4748
line.strip() for line in testresults.readlines() if not line.startswith("#")

0 commit comments

Comments
 (0)