diff options
Diffstat (limited to 'Lib/test/test_atexit.py')
-rw-r--r-- | Lib/test/test_atexit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_atexit.py b/Lib/test/test_atexit.py index 684d607..bea482f 100644 --- a/Lib/test/test_atexit.py +++ b/Lib/test/test_atexit.py @@ -41,13 +41,13 @@ class TestCase(unittest.TestCase): def test_sys_override(self): # be sure a preset sys.exitfunc is handled properly - s = StringIO.StringIO() - sys.stdout = sys.stderr = s save_handlers = atexit._exithandlers atexit._exithandlers = [] exfunc = sys.exitfunc sys.exitfunc = self.h1 reload(atexit) + s = StringIO.StringIO() + sys.stdout = sys.stderr = s try: atexit.register(self.h2) atexit._run_exitfuncs() |