diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-17 13:52:48 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-17 13:52:48 (GMT) |
commit | d80b4bfd0b291d543c682d7dac0841de0192a238 (patch) | |
tree | 3968f81c285078b86b95aedddc6246f4d901a542 /Lib/test/test_dict.py | |
parent | 8b3f1ce5916c3ec5f426d45496b313d7be6ea3a1 (diff) | |
download | cpython-d80b4bfd0b291d543c682d7dac0841de0192a238.zip cpython-d80b4bfd0b291d543c682d7dac0841de0192a238.tar.gz cpython-d80b4bfd0b291d543c682d7dac0841de0192a238.tar.bz2 |
#7092: silence some more py3k warnings.
Diffstat (limited to 'Lib/test/test_dict.py')
-rw-r--r-- | Lib/test/test_dict.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index 26c1d94..4df7388 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -660,11 +660,14 @@ class SubclassMappingTests(mapping_tests.BasicTestMappingProtocol): type2test = Dict def test_main(): - test_support.run_unittest( - DictTest, - GeneralMappingTests, - SubclassMappingTests, - ) + with test_support.check_py3k_warnings( + ('dict(.has_key..| inequality comparisons) not supported in 3.x', + DeprecationWarning)): + test_support.run_unittest( + DictTest, + GeneralMappingTests, + SubclassMappingTests, + ) if __name__ == "__main__": test_main() |