Fix test_atexit so that it still passes when -3 is supplied. (It was catching the warning messages on stdio from using the reload() function.)
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 @@
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()