We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70efb67 commit 518bd54Copy full SHA for 518bd54
pandas/tests/io/conftest.py
@@ -63,13 +63,14 @@ def moto_server(aws_credentials):
63
if is_ci_environment() and not (
64
is_platform_mac() or is_platform_arm() or is_platform_windows()
65
):
66
- return "http://localhost:5000"
67
- moto_server = pytest.importorskip("moto.server")
68
- server = moto_server.ThreadedMotoServer(port=0)
69
- server.start()
70
- host, port = server.get_host_and_port()
71
- yield f"http://{host}:{port}"
72
- server.stop()
+ yield "http://localhost:5000"
+ else:
+ moto_server = pytest.importorskip("moto.server")
+ server = moto_server.ThreadedMotoServer(port=0)
+ server.start()
+ host, port = server.get_host_and_port()
+ yield f"http://{host}:{port}"
73
+ server.stop()
74
75
76
@pytest.fixture
0 commit comments