From 0035ec4ca40f312d8e8e4e99e69fc3732c6e4fa1 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Fri, 17 Dec 2021 11:23:17 +0100 Subject: [PATCH] Proper C-style formatting for integer Variable `port` is initialized as an integer, should be formatted with `%d`. --- zarr/tests/test_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zarr/tests/test_storage.py b/zarr/tests/test_storage.py index da1b76e9c7..4bd38755bc 100644 --- a/zarr/tests/test_storage.py +++ b/zarr/tests/test_storage.py @@ -1151,8 +1151,8 @@ def s3(request): pytest.importorskip("moto") port = 5555 - endpoint_uri = 'http://127.0.0.1:%s/' % port - proc = subprocess.Popen(shlex.split("moto_server s3 -p %s" % port), + endpoint_uri = 'http://127.0.0.1:%d/' % port + proc = subprocess.Popen(shlex.split("moto_server s3 -p %d" % port), stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) timeout = 5