diff options
author | Irit Katriel <iritkatriel@yahoo.com> | 2021-04-01 19:05:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 19:05:51 (GMT) |
commit | bd4ab8e73906a4f12d5353f567228b7c7497baf7 (patch) | |
tree | 3bae881d8614eeed2ba604126885fad748569ec6 | |
parent | e689cdca3c14aab8d2d454b79ddd661b238fd301 (diff) | |
download | cpython-bd4ab8e73906a4f12d5353f567228b7c7497baf7.zip cpython-bd4ab8e73906a4f12d5353f567228b7c7497baf7.tar.gz cpython-bd4ab8e73906a4f12d5353f567228b7c7497baf7.tar.bz2 |
bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)
-rw-r--r-- | Lib/test/test_pdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 9f0db02..d5abc3f 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(""" |