From: Joseph Sutton Date: Mon, 2 Oct 2023 02:06:07 +0000 (+1300) Subject: python:tests: Fix exception message X-Git-Tag: tevent-0.16.0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2196545bb032902ab138809802e5eb2e9fd84a5;p=thirdparty%2Fsamba.git python:tests: Fix exception message Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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)