diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-11-06 16:50:32 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-11-06 16:50:32 (GMT) |
| commit | 030aa35a1b5dc9a91b44abeda80d32df8a8d8952 (patch) | |
| tree | ab998de2005210ecb580d8433f61fe2772eda264 | |
| parent | b22c3fe5d8a81636b41503f035da03b1f1174570 (diff) | |
| download | cpython-030aa35a1b5dc9a91b44abeda80d32df8a8d8952.zip cpython-030aa35a1b5dc9a91b44abeda80d32df8a8d8952.tar.gz cpython-030aa35a1b5dc9a91b44abeda80d32df8a8d8952.tar.bz2 | |
Silence a couple of warnings.
| -rw-r--r-- | Lib/test/pickletester.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_cfgparser.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 2e3875c..c321f8e 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -132,6 +132,8 @@ class pickling_metaclass(type): def __reduce__(self): return (create_dynamic_class, self.reduce_args) + __hash__ = None + def create_dynamic_class(name, bases): result = pickling_metaclass(name, bases, dict()) result.reduce_args = (name, bases) diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index 4885c8c..a7ad18d 100644 --- a/Lib/test/test_cfgparser.py +++ b/Lib/test/test_cfgparser.py @@ -548,8 +548,9 @@ class TestChainMap(unittest.TestCase): [dcomb.get(k, 10) for k in klist]) # get() self.assertEqual([k in cm for k in klist], [k in dcomb for k in klist]) # __contains__() - self.assertEqual([cm.has_key(k) for k in klist], - [dcomb.has_key(k) for k in klist]) # has_key() + with test_support.check_py3k_warnings(): + self.assertEqual([cm.has_key(k) for k in klist], + [dcomb.has_key(k) for k in klist]) # has_key() class Issue7005TestCase(unittest.TestCase): """Test output when None is set() as a value and allow_no_value == False. |
