diff options
author | Raymond Hettinger <python@rcn.com> | 2011-11-05 20:39:57 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-11-05 20:39:57 (GMT) |
commit | f1182cd4dbd2556c5cfeae24deb889e514979b18 (patch) | |
tree | cc24c4aa3ab4d8237d3ac78adcadf39ad2992823 /Lib/test/test_collections.py | |
parent | 748d7ae209f746979b03b9ab4534858221d8d3da (diff) | |
parent | 4e6bf41934de08f62b22b90cda2e331eb4641dea (diff) | |
download | cpython-f1182cd4dbd2556c5cfeae24deb889e514979b18.zip cpython-f1182cd4dbd2556c5cfeae24deb889e514979b18.tar.gz cpython-f1182cd4dbd2556c5cfeae24deb889e514979b18.tar.bz2 |
Merge
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r-- | Lib/test/test_collections.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index ec209389..c9b7f6b 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -969,6 +969,12 @@ class TestCounter(unittest.TestCase): self.assertEqual(dict(+c), dict(c=5, d=10, e=15, g=40)) self.assertEqual(dict(-c), dict(a=5)) + def test_repr_nonsortable(self): + c = Counter(a=2, b=None) + r = repr(c) + self.assertIn("'a': 2", r) + self.assertIn("'b': None", r) + def test_helper_function(self): # two paths, one for real dicts and one for other mappings elems = list('abracadabra') |