@@ -447,37 +447,42 @@ The output for the example would look similar to this:
447447 *** print_tb:
448448 File "<doctest...>", line 10, in <module>
449449 lumberjack()
450+ ^^^^^^^^^^^^
450451 * ** print_exception:
451452 Traceback (most recent call last):
452453 File "<doctest...>", line 10, in <module>
453454 lumberjack()
455+ ^^^^^^^^^^^^
454456 File "<doctest...>", line 4, in lumberjack
455457 bright_side_of_death()
458+ ^^^^^^^^^^^^^^^^^^^^^^
456459 IndexError: tuple index out of range
457460 *** print_exc:
458461 Traceback (most recent call last):
459462 File "<doctest...>", line 10, in <module>
460463 lumberjack()
464+ ^^^^^^^^^^^^
461465 File "<doctest...>", line 4, in lumberjack
462466 bright_side_of_death()
467+ ^^^^^^^^^^^^^^^^^^^^^^
463468 IndexError: tuple index out of range
464469 * ** format_exc, first and last line:
465470 Traceback (most recent call last):
466471 IndexError: tuple index out of range
467472 *** format_exception:
468473 ['Traceback (most recent call last):\n ',
469- ' File "<doctest... >", line 10, in <module>\n lumberjack()\n ',
470- ' File "<doctest... >", line 4, in lumberjack\n bright_side_of_death()\n ',
471- ' File "<doctest... >", line 7, in bright_side_of_death\n return tuple()[0]\n ',
474+ ' File "<doctest default[0] >", line 10, in <module>\n lumberjack()\n ^^^^^^^^^^^^ \n ',
475+ ' File "<doctest default[0] >", line 4, in lumberjack\n bright_side_of_death()\n ^^^^^^^^^^^^^^^^^^^^^^ \n ',
476+ ' File "<doctest default[0] >", line 7, in bright_side_of_death\n return tuple()[0]\n ^^^^^^^^^^ \n ',
472477 'IndexError: tuple index out of range\n ']
473478 * ** extract_tb:
474479 [<FrameSummary file <doctest...>, line 10 in <module>>,
475480 <FrameSummary file <doctest...>, line 4 in lumberjack>,
476481 <FrameSummary file <doctest...>, line 7 in bright_side_of_death>]
477482 *** format_tb:
478- [' File "<doctest... >", line 10, in <module>\n lumberjack()\n ',
479- ' File "<doctest... >", line 4, in lumberjack\n bright_side_of_death()\n ',
480- ' File "<doctest... >", line 7, in bright_side_of_death\n return tuple()[0]\n ']
483+ [' File "<doctest default[0] >", line 10, in <module>\n lumberjack()\n ^^^^^^^^^^^^ \n ',
484+ ' File "<doctest default[0] >", line 4, in lumberjack\n bright_side_of_death()\n ^^^^^^^^^^^^^^^^^^^^^^ \n ',
485+ ' File "<doctest default[0] >", line 7, in bright_side_of_death\n return tuple()[0]\n ^^^^^^^^^^ \n ']
481486 * ** tb_lineno: 10
482487
483488
0 commit comments