[Python-checkins] bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)
vstinner
webhook-mailer at python.org
Thu Apr 1 15:06:11 EDT 2021
https://github.com/python/cpython/commit/bd4ab8e73906a4f12d5353f567228b7c7497baf7
commit: bd4ab8e73906a4f12d5353f567228b7c7497baf7
branch: master
author: Irit Katriel <iritkatriel at yahoo.com>
committer: vstinner <vstinner at python.org>
date: 2021-04-01T21:05:51+02:00
summary:
bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)
files:
M Lib/test/test_pdb.py
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 9f0db02996f5b..d5abc3f95daca 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("""
More information about the Python-checkins
mailing list