[Zope3-checkins]
SVN: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py
remove local reference to output
Christian Theune
ct at gocept.com
Sat May 3 14:40:04 EDT 2008
Log message for revision 86263:
remove local reference to output
Changed:
U zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py
-=-
Modified: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py
===================================================================
--- zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py 2008-05-03 18:19:38 UTC (rev 86262)
+++ zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py 2008-05-03 18:40:03 UTC (rev 86263)
@@ -86,7 +86,6 @@
self.setup_features()
options = self.options
- output = options.output
# Make sure we start with real pdb.set_trace. This is needed
# to make tests of the test runner work properly. :)
@@ -95,9 +94,10 @@
if (options.profile
and sys.version_info[:3] <= (2,4,1)
and __debug__):
- output.error('Because of a bug in Python < 2.4.1, profiling '
- 'during tests requires the -O option be passed to '
- 'Python (not the test runner).')
+ self.options.output.error(
+ 'Because of a bug in Python < 2.4.1, profiling '
+ 'during tests requires the -O option be passed to '
+ 'Python (not the test runner).')
sys.exit()
if options.coverage:
@@ -145,7 +145,7 @@
if options.profile and not options.resume_layer:
stats = profiler.loadStats(prof_glob)
stats.sort_stats('cumulative', 'calls')
- output.profiler_stats(stats)
+ self.options.output.profiler_stats(stats)
if tracer:
coverdir = os.path.join(os.getcwd(), options.coverage)
More information about the Zope3-Checkins
mailing list