homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients christian.heimes, methane, xtreak
Date 2020年07月02日.09:02:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593680546.69.0.459323400121.issue41165@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2020年07月02日 09:02:26xtreaksetrecipients: + xtreak, christian.heimes, methane
2020年07月02日 09:02:26xtreaksetmessageid: <1593680546.69.0.459323400121.issue41165@roundup.psfhosted.org>
2020年07月02日 09:02:26xtreaklinkissue41165 messages
2020年07月02日 09:02:26xtreakcreate

AltStyle によって変換されたページ (->オリジナル) /