bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) · miss-islington/cpython@9e9b2c3 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 9e9b2c3
authored and
committed
bpo-33967: Remove use of deprecated assertRaisesRegexp() (pythonGH-8261)
It was added in test_functools at 445f1b3.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2310,7 +2310,7 @@ def test_invalid_positional_argument(self): | ||
2310 | 2310 | def f(*args): |
2311 | 2311 | pass |
2312 | 2312 | msg = 'f requires at least 1 positional argument' |
2313 | -with self.assertRaisesRegexp(TypeError, msg): | |
2313 | +with self.assertRaises(TypeError, msg=msg): | |
2314 | 2314 | f() |
2315 | 2315 | |
2316 | 2316 | if __name__ == '__main__': |