Skip to content

Commit 7849bd5

Browse files
hugovkakx
authored andcommitted
Mark PillowLeakTestCase as isolated
1 parent 8c9babf commit 7849bd5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Tests/helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def is_pypy() -> bool:
211211
return sys.implementation.name == "pypy"
212212

213213

214+
@pytest.mark.isolated
214215
@pytest.mark.skipif(sys.platform.startswith("win32"), reason="Requires Unix or macOS")
215216
# Per https://stackoverflow.com/a/29007723/51685, due to JIT compilation,
216217
# RSS utilization is known to grow in PyPy.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ num_workers = 4
209209

210210
[tool.pytest]
211211
addopts = [ "-ra", "--color=auto" ]
212+
markers = [
213+
"isolated: tests that are not compatible with pytest-xdist (deselect with '-m \"not isolated\"')",
214+
]
212215
testpaths = [
213216
"Tests",
214217
]

0 commit comments

Comments
 (0)