commit/galaxy-central: dannon: Remove unused imports, fix exception log str(e) (which was actually `e` imported from another package, not the exception...)
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/d68822fb9449/ changeset: d68822fb9449 user: dannon date: 2012-10-16 22:47:31 summary: Remove unused imports, fix exception log str(e) (which was actually `e` imported from another package, not the exception...) affected #: 1 file diff -r 1e0de1ac4cd50e72926d977510b5185b9d6d5111 -r d68822fb944998597f3d16944eb6e42edb8041c8 test/base/twilltestcase.py --- 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 @@ 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 ) ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket