summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_userdict.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-04 17:18:54 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-04 17:18:54 (GMT)
commit8905bb10e044b70e1d25f3c83afaf309258fee60 (patch)
tree38c67d8bd652ac919b9f9ccd2925a7185ad1a843 /Lib/test/test_userdict.py
parentb5e3f0dfc63c6df79375e528a9c03388b8e0eadb (diff)
downloadcpython-8905bb10e044b70e1d25f3c83afaf309258fee60.zip
cpython-8905bb10e044b70e1d25f3c83afaf309258fee60.tar.gz
cpython-8905bb10e044b70e1d25f3c83afaf309258fee60.tar.bz2
Fix a bug in test_dict and test_userdict, found at the PyPy sprint.
Diffstat (limited to 'Lib/test/test_userdict.py')
-rw-r--r--Lib/test/test_userdict.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py
index a4b7de4..357c0f0 100644
--- a/Lib/test/test_userdict.py
+++ b/Lib/test/test_userdict.py
@@ -174,7 +174,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
except RuntimeError, err:
self.assertEqual(err.args, (42,))
else:
- self.fail_("e[42] didn't raise RuntimeError")
+ self.fail("e[42] didn't raise RuntimeError")
class F(UserDict.UserDict):
def __init__(self):
# An instance variable __missing__ should have no effect
@@ -186,7 +186,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
except KeyError, err:
self.assertEqual(err.args, (42,))
else:
- self.fail_("f[42] didn't raise KeyError")
+ self.fail("f[42] didn't raise KeyError")
class G(UserDict.UserDict):
pass
g = G()
@@ -195,7 +195,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
except KeyError, err:
self.assertEqual(err.args, (42,))
else:
- self.fail_("g[42] didn't raise KeyError")
+ self.fail("g[42] didn't raise KeyError")
##########################
# Test Dict Mixin