Skip to content

Commit 78ffb8b

Browse files
Backport PR pandas-dev#38480: CI: Supress moto server logs in tests (pandas-dev#38501)
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 429b036 commit 78ffb8b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/conftest.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ def s3_base(worker_id):
5050
pytest.importorskip("s3fs")
5151
pytest.importorskip("boto3")
5252
requests = pytest.importorskip("requests")
53-
# GH 38090: Suppress http logs in tests by moto_server
54-
logging.getLogger("werkzeug").disabled = True
53+
logging.getLogger("requests").disabled = True
5554

5655
with tm.ensure_safe_environment_variables():
5756
# temporary workaround as moto fails for botocore >= 1.11 otherwise,
@@ -71,7 +70,9 @@ def s3_base(worker_id):
7170

7271
# pipe to null to avoid logging in terminal
7372
proc = subprocess.Popen(
74-
shlex.split(f"moto_server s3 -p {endpoint_port}"), stdout=subprocess.DEVNULL
73+
shlex.split(f"moto_server s3 -p {endpoint_port}"),
74+
stdout=subprocess.DEVNULL,
75+
stderr=subprocess.DEVNULL,
7576
)
7677

7778
timeout = 5

0 commit comments

Comments
 (0)