]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Fix exception message
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 2 Oct 2023 02:06:07 +0000 (15:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 03:50:31 +0000 (03:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py

index e78115665399e513ec20a60314112e3c067c445a..14bf3295f07cc3530dde73d44af1affd769e7c99 100644 (file)
@@ -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)