summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-05-27 18:02:09 +0100
committerandrey-zelenkov <xim.andrew@gmail.com>2024-06-07 17:36:15 +0100
commite77a0c166f3a840d214a901a48d6b5e5806d0156 (patch)
tree17b424235a0b42c3ded90a743c9fb3faaf1f03e7 /test
parent4fc50258b57f90fa9b40ca50c24af815625ed343 (diff)
downloadunit-e77a0c166f3a840d214a901a48d6b5e5806d0156.tar.gz
unit-e77a0c166f3a840d214a901a48d6b5e5806d0156.tar.bz2
Tests: explicitly specify 'f' prefix to format string before printing
Otherwise string will be printed as: "Could not unmount filesystems in tmpdir ({temporary_dir})"
Diffstat (limited to 'test')
-rw-r--r--test/conftest.py2
1 files changed, 1 insertions, 1 deletions
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 [