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 vitaly
Recipients ezio.melotti, georg.brandl, gregory.p.smith, michael.foord, r.david.murray, rbcollins, rhettinger, serhiy.storchaka, vitaly
Date 2016-05-23.21:46:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464040004.35.0.0977217769344.issue27071@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-05-23 21:46:44vitalysetrecipients: + vitaly, georg.brandl, rhettinger, gregory.p.smith, rbcollins, ezio.melotti, r.david.murray, michael.foord, serhiy.storchaka
2016-05-23 21:46:44vitalysetmessageid: <1464040004.35.0.0977217769344.issue27071@psf.upfronthosting.co.za>
2016-05-23 21:46:44vitalylinkissue27071 messages
2016-05-23 21:46:44vitalycreate