Message412363
@sobolevn I was expecting the following test case to be covered.
self.assertRaises(self.failureException, self.assertCountEqual,
{'a': 1}, {'a': 2})
what I understand from the doc of the assertion is that elements have to be the same without regard to order. The doc can be extended for dict.
In [10]: d = {"key": "value"}
In [11]: collections.Counter(list(d))
Out[11]: Counter({'key': 1})
In [12]: collections.Counter(d.items())
Out[12]: Counter({('key', 'value'): 1}) |
|
Date |
User |
Action |
Args |
2022-02-02 14:23:01 | cansarigol | set | recipients:
+ cansarigol, eric.smith, sobolevn |
2022-02-02 14:23:01 | cansarigol | set | messageid: <1643811781.23.0.810673264539.issue46610@roundup.psfhosted.org> |
2022-02-02 14:23:01 | cansarigol | link | issue46610 messages |
2022-02-02 14:23:01 | cansarigol | create | |
|