Skip to content

Commit 2ab9e71

Browse files
committed
fix F541 f-string-missing-placeholders
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 7f237b3 commit 2ab9e71

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/fs_diff/test_fs_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def test_fs_diff(hosts):
1111
assert len(hosts) == 2, "This test requires exactly 2 hosts"
1212

13-
assert (hosts[0].xcp_version == hosts[1].xcp_version), f"Host versions must be the same"
13+
assert (hosts[0].xcp_version == hosts[1].xcp_version), "Host versions must be the same"
1414

1515
fsdiff = os.path.realpath(f"{os.path.dirname(__file__)}/../../scripts/xcpng-fs-diff.py")
1616

tests/guest_tools/win/test_xenclean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ def test_xenclean_with_other_tools(self, vm_install_other_drivers: Tuple[VM, Dic
5454
if param.get("vendor_device"):
5555
pytest.skip("Skipping XenClean with vendor device present")
5656
return
57-
logging.info(f"XenClean with other tools")
57+
logging.info("XenClean with other tools")
5858
run_xenclean(vm, guest_tools_iso)
5959
assert vm.are_windows_tools_uninstalled()

tests/network/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
def host_no_sdn_controller(host):
55
""" An XCP-ng with no SDN controller. """
66
if host.xe('sdn-controller-list', minimal=True):
7-
pytest.skip(f"This test requires an XCP-ng with no SDN controller")
7+
pytest.skip("This test requires an XCP-ng with no SDN controller")

tests/packages/linux_image/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def host_with_perf(host_at_least_8_3, host_with_saved_yum_state):
1111
host = host_with_saved_yum_state
1212

13-
logging.info(f"Getting perf package")
13+
logging.info("Getting perf package")
1414

1515
host.yum_install(['perf'])
1616
yield host

tests/xen/test_xtf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_all(self, host, xtf_runner):
4949
"Checking whether they belong to the allowed list...")
5050
for skipped_test in skipped_tests:
5151
if skipped_test not in self._common_skips:
52-
logging.error(f"... At least one doesn't")
52+
logging.error("... At least one doesn't")
5353
raise
5454
logging.info("... They do")
5555
else:

0 commit comments

Comments
 (0)