Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated unittest aliases were removed in Python 3.11 #19

Closed
tirkarthi opened this issue Oct 5, 2021 · 0 comments · Fixed by #20
Closed

Deprecated unittest aliases were removed in Python 3.11 #19

tirkarthi opened this issue Oct 5, 2021 · 0 comments · Fixed by #20

Comments

@tirkarthi
Copy link
Contributor

python/cpython#28268

assert_raises_regexp=_t.assertRaisesRegexp,

assert_regexp_matches=_t.assertRegexpMatches,

Since the library is Python 3.5 + the recommended aliases can be used

assertRaisesRegexp -> assertRaisesRegex
assertRegexpMatches -> assertRegex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant