[Python-checkins] cpython: Strengthen one of the collections.Counter() tests

raymond.hettinger python-checkins at python.org
Sun Oct 6 02:20:28 CEST 2013


http://hg.python.org/cpython/rev/43e94e77329e
changeset:   85984:43e94e77329e
parent:      85961:50e0ed353c7f
user:        Raymond Hettinger <python at rcn.com>
date:        Sat Oct 05 17:14:51 2013 -0700
summary:
  Strengthen one of the collections.Counter() tests

files:
  Lib/test/test_collections.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -1080,8 +1080,10 @@
         # 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 })
 
 
 ################################################################################

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list