[issue45615] Missing test for type of error when printing traceback for non-exception
Nikita Sobolev
report at bugs.python.org
Thu Nov 4 06:11:18 EDT 2021
Nikita Sobolev <mail at sobolevn.me> added the comment:
For me something different happens now:
```
Python 3.11.0a1+ (heads/main-dirty:e03e50377d, Nov 4 2021, 13:09:20) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import traceback
>>> traceback.print_exception(12)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/sobolev/Desktop/cpython/Lib/traceback.py", line 118, in print_exception
value, tb = _parse_value_tb(exc, value, tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sobolev/Desktop/cpython/Lib/traceback.py", line 100, in _parse_value_tb
return exc, exc.__traceback__
^^^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute '__traceback__'
```
----------
nosy: +sobolevn
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45615>
_______________________________________
More information about the Python-bugs-list
mailing list