From 13356dff74da2e5fe2fc8786232e4454eabfbf3c Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Tue, 16 Oct 2012 16:47:31 -0400 Subject: [PATCH] Remove unused imports, fix exception log str(e) (which was actually `e` imported from another package, not the exception...) --- test/base/twilltestcase.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/base/twilltestcase.py b/test/base/twilltestcase.py index de233ca5886..57f67a30104 100644 --- a/test/base/twilltestcase.py +++ b/test/base/twilltestcase.py @@ -1,8 +1,7 @@ import pkg_resources pkg_resources.require( "twill==0.9" ) -import StringIO, os, sys, random, filecmp, time, unittest, urllib, logging, difflib, tarfile, zipfile, tempfile, re, shutil, subprocess -from itertools import * +import StringIO, os, filecmp, time, unittest, urllib, logging, difflib, tarfile, zipfile, tempfile, re, shutil, subprocess import twill import twill.commands as tc @@ -703,7 +702,7 @@ class TwillTestCase( unittest.TestCase ): shutil.copy( temp_name, ofn ) except Exception, exc: error_log_msg = ( 'TwillTestCase could not save output file %s to %s: ' % ( temp_name, ofn ) ) - error_log_msg += str( e ) + error_log_msg += str( exc ) else: log.debug('## GALAXY_TEST_SAVE=%s. saved %s' % ( self.keepOutdir, ofn ) )