-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
TestCase.assertRaisesString #123013
Copy link
Copy link
Closed as not planned
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Feature or enhancement
Proposal:
More often I need to check for exact error message and do not need regular expression.
For pure convenience, this would look like.
However, as using regular expression is overkill, could just add pure string case to
_AssertRaisesBaseContext:Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs