summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-10-06 00:14:51 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-10-06 00:14:51 (GMT)
commitfacd0a346f34c97dcbea315b7652503196c753f5 (patch)
tree549983a3a9bed6c024674c30319ca99244cbf5b7 /Lib
parent07573d7b2418dd3a043c8fc95f40517fa4543048 (diff)
downloadcpython-facd0a346f34c97dcbea315b7652503196c753f5.zip
cpython-facd0a346f34c97dcbea315b7652503196c753f5.tar.gz
cpython-facd0a346f34c97dcbea315b7652503196c753f5.tar.bz2
Strengthen one of the collections.Counter() tests
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_collections.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index ade6ee7..56e8120 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -1080,8 +1080,10 @@ class TestCounter(unittest.TestCase):
# test fidelity to the pure python version
c = CounterSubclassWithSetItem('abracadabra')
self.assertTrue(c.called)
+ self.assertEqual(dict(c), {'a': 5, 'b': 2, 'c': 1, 'd': 1, 'r':2 })
c = CounterSubclassWithGet('abracadabra')
self.assertTrue(c.called)
+ self.assertEqual(dict(c), {'a': 5, 'b': 2, 'c': 1, 'd': 1, 'r':2 })
################################################################################