STINNER Victor <vstin...@python.org> added the comment:
Serhiy closed my issue bpo-43841 as a duplicate of this one. My message: Does someone want to propose a fix? $ ./python -m test -v test_collections (...) test_issue_4920 (test.test_collections.TestCollectionABCs) ... /home/vstinner/python/master/Lib/test/test_collections.py:1518: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(s), len(items) - 1) ok (...) Tests result: SUCCESS Warning introduced by PR 25209: commit 453074c8daf996b1815a0cd2218f0dbf1801056c Author: Stepan Sindelar <m...@stevesindelar.cz> Date: Thu Apr 8 01:31:55 2021 +0200 Fix broken test for MutableSet.pop() (GH-25209) Changes the test to not assert concrete result of pop, but just that it was an item from the set, and that the set shrunk by one. ---------- nosy: +vstinner title: Deprecation warnings in test cases -> [easy] test_collections: DeprecationWarning: Please use assertEqual instead _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43825> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com