This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/pytb/error_locations.pytb
Jean-Abou-Samra 4d0a7d7cda
Update for new Python traceback locations (#2004)
Since https://github.com/python/cpython/pull/27037, they can include
tildes in addition to the carets.
2021-12-29 09:11:38 +01:00

17 lines
549 B
Text

Traceback (most recent call last):
File "/home/tb.py", line 13, in <module>
in_Python_3_11()
^^^^^^^^^^^^^^^^
File "/home/tb.py", line 2, in in_Python_3_11
return error_locations()
^^^^^^^^^^^^^^^^^
File "/home/tb.py", line 5, in error_locations
return are_provided() is True
^^^^^^^^^^^^^^
File "/home/tb.py", line 8, in are_provided
return in_tracebacks()
^^^^^^^^^^^^^^^
File "/home/tb.py", line 11, in in_tracebacks
return 1/0
~^~
ZeroDivisionError: division by zero