Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
> 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41165> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com