Skip to content

Commit 3ff367e

Browse files
Use f-string for string interpolation
1 parent fa7e621 commit 3ff367e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def store2(request: pytest.FixtureRequest, tmpdir: LEGACY_PATH) -> Store:
109109
def sync_store(request: pytest.FixtureRequest, tmp_path: LEGACY_PATH) -> Store:
110110
result = sync(parse_store(request.param, str(tmp_path)))
111111
if not isinstance(result, Store):
112-
raise TypeError("Wrong store class returned by test fixture! got " + result + " instead")
112+
raise TypeError(f"Wrong store class returned by test fixture! got {result} instead")
113113
return result
114114

115115

tests/test_codec_entrypoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def set_path() -> Generator[None, None, None]:
2525
@pytest.mark.usefixtures("set_path")
2626
@pytest.mark.parametrize("codec_name", ["TestEntrypointCodec", "TestEntrypointGroup.Codec"])
2727
def test_entrypoint_codec(codec_name: str) -> None:
28-
config.set({"codecs.test": "package_with_entrypoint." + codec_name})
28+
config.set({"codecs.test": f"package_with_entrypoint.{codec_name}"})
2929
cls_test = zarr.registry.get_codec_class("test")
3030
assert cls_test.__qualname__ == codec_name
3131

@@ -42,7 +42,7 @@ def test_entrypoint_pipeline() -> None:
4242
def test_entrypoint_buffer(buffer_name: str) -> None:
4343
config.set(
4444
{
45-
"buffer": "package_with_entrypoint." + buffer_name,
45+
"buffer": f"package_with_entrypoint.{buffer_name}",
4646
"ndbuffer": "package_with_entrypoint.TestEntrypointNDBuffer",
4747
}
4848
)

0 commit comments

Comments
 (0)