From: Irit Katriel Date: Thu, 1 Apr 2021 19:05:51 +0000 (+0100) Subject: bpo-26053: Fix test_pdb.test_issue26053() (GH-25139) X-Git-Tag: v3.10.0a7~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd4ab8e73906a4f12d5353f567228b7c7497baf7;p=thirdparty%2FPython%2Fcpython.git bpo-26053: Fix test_pdb.test_issue26053() (GH-25139) --- diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 9f0db02996f5..d5abc3f95dac 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1453,9 +1453,9 @@ def bœr(): 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("""