summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cfgparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cfgparser.py')
-rw-r--r--Lib/test/test_cfgparser.py5
1 files changed, 3 insertions, 2 deletions
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.