Closed GoogleCodeExporter closed 9 years ago
Why not just use self.assertEqual(len(valid_patterns),
len(set(valid_patterns))) or similar?
Original comment by fuzzyman
on 14 Nov 2013 at 11:21
Because I need more details about the error.
self.assertEqual(len(valid_patterns), len(set(valid_patterns)))
AssertionError: 976 != 975
I think that the above error message is of little use.
Original comment by msm...@gmail.com
on 15 Nov 2013 at 10:41
self.assertCountEqual(set(valid_pattterns), valid_patterns) - this will tell
you if the collections have different members and should give you a useful
error message.
Original comment by fuzzyman
on 15 Nov 2013 at 12:34
This is a reasonable request - can I point you at cPython's bugtracker itself
though: unittest2 is now focused on backports. Non-backport standard things
will go into cPython first. Experimental things will be done in other projects
e.g. testtools.
Original comment by robert.c...@gmail.com
on 4 Nov 2014 at 2:59
Original issue reported on code.google.com by
msm...@gmail.com
on 10 Nov 2013 at 1:11