-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-37953: Fix deprecation warnings in test_typing #16133
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
bpo-37953: Fix deprecation warnings in test_typing #16133
Conversation
self.assertEquals() is deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@ZackerySpytz: Status check is done, and it's a success ✅ . |
Sorry, I can't merge this PR. Reason: |
Thanks @ZackerySpytz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
self.assertEquals() is deprecated. ``` ./python -We -m test test_typing Run tests sequentially 0:00:00 load avg: 0.23 [1/1] test_typing test test_typing failed -- Traceback (most recent call last): File "/home/lubuntu2/cpython/Lib/test/test_typing.py", line 2382, in test_forward_equality_gth self.assertEquals(Union[c1, c1_gth], Union[c1]) File "/home/lubuntu2/cpython/Lib/unittest/case.py", line 1390, in deprecated_func warnings.warn( DeprecationWarning: Please use assertEqual instead. test_typing failed == Tests result: FAILURE == 1 test failed: test_typing Total duration: 140 ms Tests result: FAILURE ``` https://bugs.python.org/issue37953 (cherry picked from commit d057b89) Co-authored-by: Zackery Spytz <[email protected]>
GH-16138 is a backport of this pull request to the 3.8 branch. |
self.assertEquals() is deprecated. ``` ./python -We -m test test_typing Run tests sequentially 0:00:00 load avg: 0.23 [1/1] test_typing test test_typing failed -- Traceback (most recent call last): File "/home/lubuntu2/cpython/Lib/test/test_typing.py", line 2382, in test_forward_equality_gth self.assertEquals(Union[c1, c1_gth], Union[c1]) File "/home/lubuntu2/cpython/Lib/unittest/case.py", line 1390, in deprecated_func warnings.warn( DeprecationWarning: Please use assertEqual instead. test_typing failed == Tests result: FAILURE == 1 test failed: test_typing Total duration: 140 ms Tests result: FAILURE ``` https://bugs.python.org/issue37953 (cherry picked from commit d057b89) Co-authored-by: Zackery Spytz <[email protected]>
self.assertEquals() is deprecated.
https://bugs.python.org/issue37953
Automerge-Triggered-By: @gvanrossum