From 4d9934036afca2b3894f7a4095766b38fbf95c44 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Thu, 1 Apr 2021 17:00:39 +0100 Subject: [PATCH] bpo-26053: Correct assertion in pdb test --- Lib/test/test_pdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 9f0db02996f5b6..d5abc3f95daca1 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1453,9 +1453,9 @@ def test_issue26053(self): quit """ stdout, stderr = self.run_pdb_script(script, commands) - output = '\n'.join([x.strip() for x in stdout.splitlines()]) - self.assertIn("Restarting main.py with arguments:\na b c", output) - self.assertIn("Restarting main.py with arguments:\nd e f", output) + res = '\n'.join([x.strip() for x in stdout.splitlines()]) + self.assertRegex(res, "Restarting .* with arguments:\na b c") + self.assertRegex(res, "Restarting .* with arguments:\nd e f") def test_readrc_kwarg(self): script = textwrap.dedent("""