Skip to content

Commit 5209e34

Browse files
Use f-string for string interpolation
1 parent b556747 commit 5209e34

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
@@ -121,7 +121,7 @@ async def store2(request: pytest.FixtureRequest, tmpdir: LEGACY_PATH) -> Store:
121121
def sync_store(request: pytest.FixtureRequest, tmp_path: LEGACY_PATH) -> Store:
122122
result = sync(parse_store(request.param, str(tmp_path)))
123123
if not isinstance(result, Store):
124-
raise TypeError("Wrong store class returned by test fixture! got " + result + " instead")
124+
raise TypeError(f"Wrong store class returned by test fixture! got {result} instead")
125125
return result
126126

127127

tests/test_codec_entrypoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@pytest.mark.usefixtures("set_path")
88
@pytest.mark.parametrize("codec_name", ["TestEntrypointCodec", "TestEntrypointGroup.Codec"])
99
def test_entrypoint_codec(codec_name: str) -> None:
10-
config.set({"codecs.test": "package_with_entrypoint." + codec_name})
10+
config.set({"codecs.test": f"package_with_entrypoint.{codec_name}"})
1111
cls_test = zarr.registry.get_codec_class("test")
1212
assert cls_test.__qualname__ == codec_name
1313

@@ -24,7 +24,7 @@ def test_entrypoint_pipeline() -> None:
2424
def test_entrypoint_buffer(buffer_name: str) -> None:
2525
config.set(
2626
{
27-
"buffer": "package_with_entrypoint." + buffer_name,
27+
"buffer": f"package_with_entrypoint.{buffer_name}",
2828
"ndbuffer": "package_with_entrypoint.TestEntrypointNDBuffer",
2929
}
3030
)

0 commit comments

Comments
 (0)