[Python-checkins] cpython (3.3): #19166: use an unused var in a test. Patch by Vajrasky Kok.
ezio.melotti
python-checkins at python.org
Sat Oct 5 02:14:34 CEST 2013
http://hg.python.org/cpython/rev/33bbc60705e8
changeset: 85963:33bbc60705e8
branch: 3.3
parent: 85960:e4cec1116e5c
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Oct 05 03:07:03 2013 +0300
summary:
#19166: use an unused var in a test. Patch by Vajrasky Kok.
files:
Lib/test/test_dict.py | 3 +++
1 files changed, 3 insertions(+), 0 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
@@ -45,6 +45,9 @@
self.assertEqual(set(d.keys()), set())
d = {'a': 1, 'b': 2}
k = d.keys()
+ self.assertEqual(set(k), {'a', 'b'})
+ self.assertIn('a', k)
+ self.assertIn('b', k)
self.assertIn('a', d)
self.assertIn('b', d)
self.assertRaises(TypeError, d.keys, None)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list