From e77a0c166f3a840d214a901a48d6b5e5806d0156 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Mon, 27 May 2024 18:02:09 +0100 Subject: Tests: explicitly specify 'f' prefix to format string before printing Otherwise string will be printed as: "Could not unmount filesystems in tmpdir ({temporary_dir})" --- test/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/conftest.py b/test/conftest.py index 2fe4d8dc..2d8eabad 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -429,7 +429,7 @@ def _clear_temp_dir(): temporary_dir = unit_instance['temp_dir'] if is_findmnt and not waitforunmount(temporary_dir, timeout=600): - sys.exit('Could not unmount filesystems in tmpdir ({temporary_dir}).') + sys.exit(f'Could not unmount filesystems in tmpdir ({temporary_dir}).') for item in Path(temporary_dir).iterdir(): if item.name not in [ -- cgit