This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel
Date 2022-01-28.15:44:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643384698.2.0.455310803456.issue46563@roundup.psfhosted.org>
In-reply-to
Content
This behavior (that the OSError has the ValueError as context) should be tested and documented: 


>>> try:
...   raise TypeError(1)
... except:
...   raise ValueError(2)
... finally:
...   raise OSError(3)
... 
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
TypeError: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
ValueError: 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 6, in <module>
OSError: 3
History
Date User Action Args
2022-01-28 15:44:58iritkatrielsetrecipients: + iritkatriel
2022-01-28 15:44:58iritkatrielsetmessageid: <1643384698.2.0.455310803456.issue46563@roundup.psfhosted.org>
2022-01-28 15:44:58iritkatriellinkissue46563 messages
2022-01-28 15:44:58iritkatrielcreate