diff options
| author | Georg Brandl <georg@python.org> | 2007-03-04 17:19:02 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-03-04 17:19:02 +0000 |
| commit | 131069b3a0b3370ac1f6e518c8f67fa19d7644cf (patch) | |
| tree | 81e200dc5e19831292e02840053ec207337bfa35 /Lib/test/test_dict.py | |
| parent | ebfcfb015e50d32b9e628c67a7f62dcf6ada3078 (diff) | |
| download | cpython-git-131069b3a0b3370ac1f6e518c8f67fa19d7644cf.tar.gz | |
Fix a bug in test_dict and test_userdict, found at the PyPy sprint.
(backport from rev. 54114)
Diffstat (limited to 'Lib/test/test_dict.py')
| -rw-r--r-- | Lib/test/test_dict.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index 6d6e245d42..e99c46d965 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -430,7 +430,7 @@ class DictTest(unittest.TestCase): 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(dict): def __init__(self): # An instance variable __missing__ should have no effect @@ -441,7 +441,7 @@ class DictTest(unittest.TestCase): 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(dict): pass g = G() @@ -450,7 +450,7 @@ class DictTest(unittest.TestCase): 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") def test_tuple_keyerror(self): # SF #1576657 |
