Skip to content

Commit d5e7c3a

Browse files
committed
test: no need to group tests by needs_pth
1 parent ed516c4 commit d5e7c3a

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ strict = true
128128
# "virtualenv_test": because of an expensive session-scoped fixture
129129
# "compare_test": Because of shared-file manipulations (~/tests/actual/testing)
130130
# "get_zip_bytes_test": no idea why this one fails if run on separate workers
131-
# "needs_pth": tests that create .pth files in shared locations
132131

133132
# How come these warnings are suppressed successfully here, but not in conftest.py??
134133
filterwarnings = [

tests/test_oddball.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def test_unsets_trace() -> None:
616616
)
617617
assert expected == out
618618

619-
@pytest.mark.skipif(env.METACOV, reason="Can't set trace functions during meta-coverage")
619+
@pytest.mark.skipif(env.METACOV, reason="Can't set trace functions during metacoverage")
620620
def test_atexit_gettrace(self) -> None:
621621
# This is not a test of coverage at all, but of our understanding
622622
# of this edge-case behavior in various Pythons.

tests/test_process.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,6 @@ def test_removing_directory_with_error(self) -> None:
13721372

13731373

13741374
@pytest.mark.skipif(env.METACOV, reason="Can't test subprocess pth file during metacoverage")
1375-
@pytest.mark.xdist_group(name="needs_pth")
13761375
class ProcessStartupTest(CoverageTest):
13771376
"""Test that we can measure coverage in subprocesses."""
13781377

@@ -1594,7 +1593,6 @@ def test_subprocess_dir_with_source(self) -> None:
15941593

15951594

15961595
@pytest.mark.skipif(env.WINDOWS, reason="patch=execv isn't supported on Windows")
1597-
@pytest.mark.xdist_group(name="needs_pth")
15981596
class ExecvTest(CoverageTest):
15991597
"""Test that we can measure coverage in subprocesses."""
16001598

@@ -1689,7 +1687,6 @@ class ProcessStartupWithSourceTest(CoverageTest):
16891687
@pytest.mark.parametrize("dashm", ["-m", ""])
16901688
@pytest.mark.parametrize("package", ["pkg", ""])
16911689
@pytest.mark.parametrize("source", ["main", "sub"])
1692-
@pytest.mark.xdist_group(name="needs_pth")
16931690
def test_pth_and_source_work_together(
16941691
self,
16951692
dashm: str,

0 commit comments

Comments
 (0)