Message372830
> For the record, I noticed DeprecationWarning is not shown by unittest.runner by default.
There is an open issue for this but I think it's enabled by default https://bugs.python.org/issue39892
$ cat /tmp/test_bar.py
import unittest
import warnings
class TestFoo(unittest.TestCase):
def test_foo(self):
self.assertEquals(1, 1)
if __name__ == "__main__":
unittest.main()
$ python3.8 -m unittest test_bar
/private/tmp/test_bar.py:8: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(1, 1)
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK |
|
Date |
User |
Action |
Args |
2020-07-02 09:02:26 | xtreak | set | recipients:
+ xtreak, christian.heimes, methane |
2020-07-02 09:02:26 | xtreak | set | messageid: <1593680546.69.0.459323400121.issue41165@roundup.psfhosted.org> |
2020-07-02 09:02:26 | xtreak | link | issue41165 messages |
2020-07-02 09:02:26 | xtreak | create | |
|