Commit 853b6d3a authored by Fred Drake's avatar Fred Drake

Wrap some long lines.

parent 601ac082
...@@ -93,7 +93,8 @@ class TestRunner: ...@@ -93,7 +93,8 @@ class TestRunner:
def runSuite(self, suite): def runSuite(self, suite):
if suite: if suite:
runner=unittest.TextTestRunner(stream=sys.stderr, verbosity=self.verbosity) runner=unittest.TextTestRunner(stream=sys.stderr,
verbosity=self.verbosity)
self.results.append(runner.run(suite)) self.results.append(runner.run(suite))
else: else:
self.report('No suitable tests found') self.report('No suitable tests found')
...@@ -151,7 +152,8 @@ class TestRunner: ...@@ -151,7 +152,8 @@ class TestRunner:
except KeyboardInterrupt: except KeyboardInterrupt:
raise raise
except: except:
self.report('No test suite found in file:\n%s\n' % pathname) self.report('No test suite found in file:\n%s\n'
% pathname)
if self.verbosity > 1: if self.verbosity > 1:
traceback.print_exc() traceback.print_exc()
suite = None suite = None
...@@ -187,7 +189,7 @@ class TestRunner: ...@@ -187,7 +189,7 @@ class TestRunner:
dirname, name = os.path.split(filename) dirname, name = os.path.split(filename)
if dirname: if dirname:
if self.verbosity > 2: if self.verbosity > 2:
sys.stderr.write( '*** Changing directory to: %s\n' % dirname ) sys.stderr.write('*** Changing directory to: %s\n' % dirname)
os.chdir(dirname) os.chdir(dirname)
self.report('Running: %s' % filename) self.report('Running: %s' % filename)
try: try:
...@@ -202,7 +204,7 @@ class TestRunner: ...@@ -202,7 +204,7 @@ class TestRunner:
else: else:
self.report('No test suite found in file:\n%s\n' % filename) self.report('No test suite found in file:\n%s\n' % filename)
if self.verbosity > 2: if self.verbosity > 2:
sys.stderr.write( '*** Restoring directory to: %s\n' % working_dir ) sys.stderr.write('*** Restoring directory to: %s\n' % working_dir)
os.chdir(working_dir) os.chdir(working_dir)
def remove_stale_bytecode(arg, dirname, names): def remove_stale_bytecode(arg, dirname, names):
......
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