diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-14 08:02:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-14 08:02:19 (GMT) |
commit | 66da347ef0034ad9bddc7fad112025c886249f0d (patch) | |
tree | f17ce0c17b94d90f4d3c127567a7d37d4dd9b3f8 /Modules/_codecsmodule.c | |
parent | f05d39d42cf4a7d6bcca8b3f7ef2601ee9ebf160 (diff) | |
download | cpython-66da347ef0034ad9bddc7fad112025c886249f0d.zip cpython-66da347ef0034ad9bddc7fad112025c886249f0d.tar.gz cpython-66da347ef0034ad9bddc7fad112025c886249f0d.tar.bz2 |
bpo-37953: Fix deprecation warnings in test_typing (GH-16133)
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 d057b896f97e6d7447b9bf9246770c41cf205299)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Modules/_codecsmodule.c')
0 files changed, 0 insertions, 0 deletions