summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 5c072ea..93c0cae 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -1375,7 +1375,9 @@ class ArgsTestCase(BaseTestCase):
self.check_executed_tests(output, [testname],
env_changed=[testname],
fail_env_changed=True)
- self.assertIn("Warning -- Test leaked temporary files (1): mytmpfile", output)
+ self.assertIn(f"Warning -- {testname} leaked temporary "
+ f"files (1): mytmpfile",
+ output)
class TestUtils(unittest.TestCase):