Skip to content

Commit dcb4c56

Browse files
committed
Group at module level
1 parent 51ff387 commit dcb4c56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_store/test_fsspec.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
pytest.mark.filterwarnings(
4545
"ignore:Exception ignored in.*finalize object.*:pytest.PytestUnraisableExceptionWarning"
4646
),
47+
# All S3 tests share a module-scoped moto server on a fixed port,
48+
# so they must run on a single xdist worker to avoid port conflicts.
49+
pytest.mark.xdist_group(name="s3"),
4750
]
4851

4952
fsspec = pytest.importorskip("fsspec")
@@ -133,7 +136,6 @@ async def test_basic() -> None:
133136
assert out[0].to_bytes() == data[1:]
134137

135138

136-
@pytest.mark.xdist_group(name="s3")
137139
class TestFsspecStoreS3(StoreTests[FsspecStore, cpu.Buffer]):
138140
store_cls = FsspecStore
139141
buffer_cls = cpu.Buffer

0 commit comments

Comments
 (0)