Skip to content

Commit dd8fa23

Browse files
Proper C-style formatting for integer (#913)
Variable `port` is initialized as an integer, should be formatted with `%d`. Co-authored-by: Josh Moore <[email protected]>
1 parent 1711b16 commit dd8fa23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zarr/tests/test_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,8 @@ def s3(request):
11511151
pytest.importorskip("moto")
11521152

11531153
port = 5555
1154-
endpoint_uri = 'http://127.0.0.1:%s/' % port
1155-
proc = subprocess.Popen(shlex.split("moto_server s3 -p %s" % port),
1154+
endpoint_uri = 'http://127.0.0.1:%d/' % port
1155+
proc = subprocess.Popen(shlex.split("moto_server s3 -p %d" % port),
11561156
stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
11571157

11581158
timeout = 5

0 commit comments

Comments
 (0)