Skip to content

Commit 01e0052

Browse files
authored
TST: Fix local run on s3 tests (#44725)
1 parent 449211b commit 01e0052

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pandas/tests/io/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ def feather_file(datapath):
4040

4141

4242
@pytest.fixture
43-
def s3so():
44-
return {"client_kwargs": {"endpoint_url": "http://localhost:5000/"}}
43+
def s3so(worker_id):
44+
if os.environ.get("PANDAS_CI", "0") == "1":
45+
url = "http://localhost:5000/"
46+
else:
47+
worker_id = "5" if worker_id == "master" else worker_id.lstrip("gw")
48+
url = f"http://127.0.0.1:555{worker_id}/"
49+
return {"client_kwargs": {"endpoint_url": url}}
4550

4651

4752
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)