diff options
author | Guido van Rossum <guido@python.org> | 2003-03-01 03:25:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-03-01 03:25:41 (GMT) |
commit | d6473d1ac573be8594beb486351907691b7aeb5b (patch) | |
tree | 9e992b32462e5d6bd3a089314ed19fd3c636d071 | |
parent | 46d3dc37e4a01e8d72b00ab9ad4e4a07022b7b64 (diff) | |
download | cpython-d6473d1ac573be8594beb486351907691b7aeb5b.zip cpython-d6473d1ac573be8594beb486351907691b7aeb5b.tar.gz cpython-d6473d1ac573be8594beb486351907691b7aeb5b.tar.bz2 |
Reindent the new code properly.
-rw-r--r-- | Lib/test/test_sys.py | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 2afac65..feef540 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -69,23 +69,23 @@ class SysModuleTest(unittest.TestCase): # Verify that exc_info is present and matches exc, then clear it, and # check that it worked. def clear_check(exc): - typ, value, traceback = sys.exc_info() - self.assert_(typ is not None) - self.assert_(value is exc) - self.assert_(traceback is not None) + typ, value, traceback = sys.exc_info() + self.assert_(typ is not None) + self.assert_(value is exc) + self.assert_(traceback is not None) - sys.exc_clear() + sys.exc_clear() - typ, value, traceback = sys.exc_info() - self.assert_(typ is None) - self.assert_(value is None) - self.assert_(traceback is None) + typ, value, traceback = sys.exc_info() + self.assert_(typ is None) + self.assert_(value is None) + self.assert_(traceback is None) def clear(): - try: - raise ValueError, 42 - except ValueError, exc: - clear_check(exc) + try: + raise ValueError, 42 + except ValueError, exc: + clear_check(exc) # Raise an exception and check that it can be cleared clear() @@ -93,16 +93,16 @@ class SysModuleTest(unittest.TestCase): # Verify that a frame currently handling an exception is # unaffected by calling exc_clear in a nested frame. try: - raise ValueError, 13 + raise ValueError, 13 except ValueError, exc: - typ1, value1, traceback1 = sys.exc_info() - clear() - typ2, value2, traceback2 = sys.exc_info() - - self.assert_(typ1 is typ2) - self.assert_(value1 is exc) - self.assert_(value1 is value2) - self.assert_(traceback1 is traceback2) + typ1, value1, traceback1 = sys.exc_info() + clear() + typ2, value2, traceback2 = sys.exc_info() + + self.assert_(typ1 is typ2) + self.assert_(value1 is exc) + self.assert_(value1 is value2) + self.assert_(traceback1 is traceback2) # Check that an exception can be cleared outside of an except block clear_check(exc) |