diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-05-30 23:28:02 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-05-30 23:28:02 (GMT) |
commit | dd55b0a32c8124edea8f4d65e14d8e5a907b0f3b (patch) | |
tree | 6afc0b61c64616493fabbb86226ade509226d6f3 /Lib | |
parent | 9e9ef9fa5a789f02a04c08998c4b74af9686e43a (diff) | |
download | cpython-dd55b0a32c8124edea8f4d65e14d8e5a907b0f3b.zip cpython-dd55b0a32c8124edea8f4d65e14d8e5a907b0f3b.tar.gz cpython-dd55b0a32c8124edea8f4d65e14d8e5a907b0f3b.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_exceptions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 1ca56f2..bcd1075 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -31,7 +31,7 @@ class ExceptionTests(unittest.TestCase): self.assertEquals(exc.__name__, excname) def testRaising(self): - self.raise_catch(AttributeError, "AttributeError") + self.raise_catch(AttributeError, "AttributeError") self.assertRaises(AttributeError, getattr, sys, "undefined_attribute") self.raise_catch(EOFError, "EOFError") @@ -184,10 +184,10 @@ class ExceptionTests(unittest.TestCase): """test that exception attributes are happy.""" try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e - + try: unicode('\xff') except Exception, e: sampleUnicodeDecodeError = e - + exceptionList = [ ( BaseException, (), { 'message' : '', 'args' : () }), ( BaseException, (1, ), { 'message' : 1, 'args' : ( 1, ) }), @@ -267,7 +267,7 @@ class ExceptionTests(unittest.TestCase): repr(expected[checkArgName]), 'exception "%s", attribute "%s"' % (repr(e), checkArgName)) - + # test for pickling support new = pickle.loads(pickle.dumps(e, random.randint(0, 2))) for checkArgName in expected.keys(): |