From d2196545bb032902ab138809802e5eb2e9fd84a5 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Mon, 2 Oct 2023 15:06:07 +1300 Subject: [PATCH] python:tests: Fix exception message Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index e7811566539..14bf3295f07 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -364,7 +364,7 @@ class TestCaseInTempDir(TestCase): # os.path.join will happily step out of the tempdir, # so let's just check. if os.path.dirname(path) != self.tempdir: - raise ValueError("{path} might be outside {self.tempdir}") + raise ValueError(f"{path} might be outside {self.tempdir}") try: _rm(path) -- 2.47.3