diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index ab0e1d09cb7..250614ea480 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py @@ -1792,7 +1792,7 @@ def test_pdb_set_trace_nested(): > (1)() -> calls_set_trace() (Pdb) print(foo) - *** NameError: name 'foo' is not defined + *** NameError: NameError("name 'foo' is not defined",) (Pdb) continue (0, 2) """