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 SylvainDe
Recipients SylvainDe, serhiy.storchaka, steven.daprano, vstinner, xtreak
Date 2019-02-18.23:32:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550532722.45.0.738448336181.issue36026@roundup.psfhosted.org>
In-reply-to
Content
This is mostly true and I agree that error messages are not part of the API.

However, I'd like to add the following points:
 - the error message was more meaningful before
 - the fact that having system.settrace used or not changes the behaviour makes me think this is not intentional.
 - the fact that the behaviour for unit test.assertRaisesRegexp is different depending on whether it is used as a context manager makes me think this is not intentional. From the documentation it seems like the 2 should behave the same way.

Thus, even if this eventually deserves to be closed as a non-issue, I'd rather go on the safe side and double check if this is the desirable behaviour or if something went wrong with the commits previously mentioned. Maybe Jeroen Demeyer (jdemeyer) would have more hindsight about this.

Does that look like an acceptable trade off?
History
Date User Action Args
2019-02-18 23:32:02SylvainDesetrecipients: + SylvainDe, vstinner, steven.daprano, serhiy.storchaka, xtreak
2019-02-18 23:32:02SylvainDesetmessageid: <1550532722.45.0.738448336181.issue36026@roundup.psfhosted.org>
2019-02-18 23:32:02SylvainDelinkissue36026 messages
2019-02-18 23:32:02SylvainDecreate