Skip to content

Commit 518bd54

Browse files
committed
yield instead of return
1 parent 70efb67 commit 518bd54

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pandas/tests/io/conftest.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ def moto_server(aws_credentials):
6363
if is_ci_environment() and not (
6464
is_platform_mac() or is_platform_arm() or is_platform_windows()
6565
):
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()
66+
yield "http://localhost:5000"
67+
else:
68+
moto_server = pytest.importorskip("moto.server")
69+
server = moto_server.ThreadedMotoServer(port=0)
70+
server.start()
71+
host, port = server.get_host_and_port()
72+
yield f"http://{host}:{port}"
73+
server.stop()
7374

7475

7576
@pytest.fixture

0 commit comments

Comments
 (0)