diff options
author | Tim Peters <tim.peters@gmail.com> | 2007-03-12 18:07:52 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2007-03-12 18:07:52 (GMT) |
commit | ea5962f86e8550978446724dadcacd60e03feef2 (patch) | |
tree | a133c011e4a81da13347903bd8d99ef1e2ddf898 /Lib/test/test_dict.py | |
parent | cb637c9ea341b5b1fe94eec78085d2851119161d (diff) | |
download | cpython-ea5962f86e8550978446724dadcacd60e03feef2.zip cpython-ea5962f86e8550978446724dadcacd60e03feef2.tar.gz cpython-ea5962f86e8550978446724dadcacd60e03feef2.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_dict.py')
-rw-r--r-- | Lib/test/test_dict.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index e15ac0b..7f0aabb 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -461,12 +461,12 @@ class DictTest(unittest.TestCase): self.assertEqual(e.args, ((1,),)) else: self.fail("missing KeyError") - + def test_bad_key(self): # Dictionary lookups should fail if __cmp__() raises an exception. class CustomException(Exception): pass - + class BadDictKey: def __hash__(self): return hash(self.__class__) @@ -475,7 +475,7 @@ class DictTest(unittest.TestCase): if isinstance(other, self.__class__): raise CustomException return other - + d = {} x1 = BadDictKey() x2 = BadDictKey() @@ -502,7 +502,7 @@ class DictTest(unittest.TestCase): # a mix of inserts and deletes hitting exactly the right hash codes in # exactly the right order, and I can't think of a randomized approach # that would be *likely* to hit a failing case in reasonable time. - + d = {} for i in range(5): d[i] = i @@ -514,7 +514,7 @@ class DictTest(unittest.TestCase): def test_resize2(self): # Another dict resizing bug (SF bug #1456209). # This caused Segmentation faults or Illegal instructions. - + class X(object): def __hash__(self): return 5 |