diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-01-08 19:04:16 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-01-08 19:04:16 (GMT) |
commit | ce8e33a095030e7af94f58f9da196b240bdf0476 (patch) | |
tree | b0ba50cbb6e85c6be6f6e6a870e4232be50a0f9c /Lib/test/mapping_tests.py | |
parent | 3ddc435af6873c6304058d7bcbcb19ee4fba7781 (diff) | |
download | cpython-ce8e33a095030e7af94f58f9da196b240bdf0476.zip cpython-ce8e33a095030e7af94f58f9da196b240bdf0476.tar.gz cpython-ce8e33a095030e7af94f58f9da196b240bdf0476.tar.bz2 |
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
Diffstat (limited to 'Lib/test/mapping_tests.py')
-rw-r--r-- | Lib/test/mapping_tests.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Lib/test/mapping_tests.py b/Lib/test/mapping_tests.py index d17c948..7ec4bb1 100644 --- a/Lib/test/mapping_tests.py +++ b/Lib/test/mapping_tests.py @@ -1,7 +1,6 @@ # tests common to dict and UserDict import unittest import UserDict -import test_support class BasicTestMappingProtocol(unittest.TestCase): @@ -55,18 +54,13 @@ class BasicTestMappingProtocol(unittest.TestCase): #len self.assertEqual(len(p), 0) self.assertEqual(len(d), len(self.reference)) - #in + #has_key for k in self.reference: + self.assertTrue(d.has_key(k)) self.assertTrue(k in d) for k in self.other: + self.assertFalse(d.has_key(k)) self.assertFalse(k in d) - #has_key - # Silence Py3k warning - with test_support.check_warnings(): - for k in self.reference: - self.assertTrue(d.has_key(k)) - for k in self.other: - self.assertFalse(d.has_key(k)) #cmp self.assertEqual(cmp(p,p), 0) self.assertEqual(cmp(d,d), 0) |