summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/test_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/tests/test_main.py')
-rw-r--r--Lib/lib2to3/tests/test_main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_main.py b/Lib/lib2to3/tests/test_main.py
index 0291931..586b8df 100644
--- a/Lib/lib2to3/tests/test_main.py
+++ b/Lib/lib2to3/tests/test_main.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import sys
import codecs
+import logging
import StringIO
import unittest
@@ -9,6 +10,10 @@ from lib2to3 import main
class TestMain(unittest.TestCase):
+ def tearDown(self):
+ # Clean up logging configuration down by main.
+ del logging.root.handlers[:]
+
def run_2to3_capture(self, args, in_capture, out_capture, err_capture):
save_stdin = sys.stdin
save_stdout = sys.stdout