From facd0a346f34c97dcbea315b7652503196c753f5 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 5 Oct 2013 17:14:51 -0700 Subject: [PATCH] Strengthen one of the collections.Counter() tests --- Lib/test/test_collections.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index ade6ee78ce..56e8120705 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 }) ################################################################################ -- 2.50.1