summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_types.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-12-30 17:17:46 (GMT)
committerGuido van Rossum <guido@python.org>1994-12-30 17:17:46 (GMT)
commiteecf035aa209cedb4ede08b527120ba3946a0c96 (patch)
treeceeb0c23f781539d1e203fa3d5def34900eb117b /Lib/test/test_types.py
parent5505d56f088b1637b7d3c10e97512ee9b9bc8cf0 (diff)
downloadcpython-eecf035aa209cedb4ede08b527120ba3946a0c96.zip
cpython-eecf035aa209cedb4ede08b527120ba3946a0c96.tar.gz
cpython-eecf035aa209cedb4ede08b527120ba3946a0c96.tar.bz2
Test new __import__ module, test reload of built-in module, test
has_key() on empty dictionary
Diffstat (limited to 'Lib/test/test_types.py')
-rw-r--r--Lib/test/test_types.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py
index 6a3f772..51c76dc 100644
--- a/Lib/test/test_types.py
+++ b/Lib/test/test_types.py
@@ -165,6 +165,7 @@ if a <> [2,1,0,-1,-2]: raise TestFailed, 'list sort with cmp func'
print '6.6 Mappings == Dictionaries'
d = {}
if d.keys() <> []: raise TestFailed, '{}.keys()'
+if d.has_key('a') <> 0: raise TestFailed, '{}.has_key(\'a\')'
if len(d) <> 0: raise TestFailed, 'len({})'
d = {'a': 1, 'b': 2}
if len(d) <> 2: raise TestFailed, 'len(dict)'