Skip to content

Commit bd4ab8e

Browse files
authored
bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)
1 parent e689cdc commit bd4ab8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_pdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,9 +1453,9 @@ def test_issue26053(self):
14531453
quit
14541454
"""
14551455
stdout, stderr = self.run_pdb_script(script, commands)
1456-
output = '\n'.join([x.strip() for x in stdout.splitlines()])
1457-
self.assertIn("Restarting main.py with arguments:\na b c", output)
1458-
self.assertIn("Restarting main.py with arguments:\nd e f", output)
1456+
res = '\n'.join([x.strip() for x in stdout.splitlines()])
1457+
self.assertRegex(res, "Restarting .* with arguments:\na b c")
1458+
self.assertRegex(res, "Restarting .* with arguments:\nd e f")
14591459

14601460
def test_readrc_kwarg(self):
14611461
script = textwrap.dedent("""

0 commit comments

Comments
 (0)