From: Victor Stinner Date: Wed, 29 Jun 2011 11:24:28 +0000 (+0200) Subject: Issue #12400: remove unused variable X-Git-Tag: v3.2.1rc2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd98f9367c4843fb6b843b7383327870e144fb61;p=thirdparty%2FPython%2Fcpython.git Issue #12400: remove unused variable --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 2929001359ae..a571e2fc5647 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -159,7 +159,6 @@ import json import os import random import re -import io import sys import time import errno @@ -973,10 +972,6 @@ class saved_test_environment: def runtest_inner(test, verbose, quiet, huntrleaks=False, debug=False, display_failure=True): support.unload(test) - if verbose: - capture_stdout = None - else: - capture_stdout = io.StringIO() test_time = 0.0 refleak = False # True if the test leaked references.