Vitaly added the comment: Same results on Python.org's Python 3.5.1 shell: >>> class Test(u.TestCase): ... def test_equal_count_of_same_elements(self): ... self.assertCountEqual(set([1,2,3]), set([1,2,3])) ... def test_equal_count_of_different_elements(self): ... self.assertCountEqual(set([1,2,3]), set([1,2,4])) ... def test_different_count(self): ... self.assertCountEqual(set([1,2,3]), set([1,2,3,4])) ... >>> u.main() FF. ====================================================================== FAIL: test_different_count (__main__.Test) ---------------------------------------------------------------------- Traceback (most recent call last): File "<stdin>", line 7, in test_different_count AssertionError: Element counts were not equal: First has 0, Second has 1: 4
====================================================================== FAIL: test_equal_count_of_different_elements (__main__.Test) ---------------------------------------------------------------------- Traceback (most recent call last): File "<stdin>", line 5, in test_equal_count_of_different_elements AssertionError: Element counts were not equal: First has 1, Second has 0: 3 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27071> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com