]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)
authorIrit Katriel <iritkatriel@yahoo.com>
Thu, 1 Apr 2021 19:05:51 +0000 (20:05 +0100)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 19:05:51 +0000 (21:05 +0200)
Lib/test/test_pdb.py

index 9f0db02996f5b6aaaf002430d97170119e1a10e3..d5abc3f95daca1530f44ecb2b1c384e16e31c4c4 100644 (file)
@@ -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("""