[Python-checkins] cpython (2.7): #19166: use an unused var in a test. Patch by Vajrasky Kok.
ezio.melotti
python-checkins at python.org
Sat Oct 5 02:14:32 CEST 2013
http://hg.python.org/cpython/rev/92c2e76ca595
changeset: 85962:92c2e76ca595
branch: 2.7
parent: 85957:405245885569
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Oct 05 03:01:37 2013 +0300
summary:
#19166: use an unused var in a test. Patch by Vajrasky Kok.
files:
Lib/test/test_dict.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -33,9 +33,11 @@
self.assertEqual(d.keys(), [])
d = {'a': 1, 'b': 2}
k = d.keys()
+ self.assertEqual(set(k), {'a', 'b'})
+ self.assertIn('a', k)
+ self.assertIn('b', k)
self.assertTrue(d.has_key('a'))
self.assertTrue(d.has_key('b'))
-
self.assertRaises(TypeError, d.keys, None)
def test_values(self):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list