Kaydet (Commit) 2591d21d authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Merged revisions 77160 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

................
  r77160 | benjamin.peterson | 2009-12-30 13:44:23 -0600 (Wed, 30 Dec 2009) | 9 lines

  Merged revisions 77158 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r77158 | benjamin.peterson | 2009-12-30 13:41:03 -0600 (Wed, 30 Dec 2009) | 1 line

    clean up logging's global state after the test finishes
  ........
................
üst d12362a8
# -*- coding: utf-8 -*-
import sys
import codecs
import logging
import io
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment