[Zope3-checkins] SVN: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py Removed now superfluous setup/teardown methods.

Christian Theune ct at gocept.com
Sun May 4 08:58:48 EDT 2008


Log message for revision 86359:
  Removed now superfluous setup/teardown methods.
  

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-04 12:57:40 UTC (rev 86358)
+++ zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py	2008-05-04 12:58:48 UTC (rev 86359)
@@ -102,7 +102,6 @@
         if self.options.fail:
             return True
 
-        self.setup_features()
         # Global setup
         for feature in self.features:
             feature.global_setup()
@@ -126,7 +125,6 @@
             # Global teardown
             for feature in reversed(self.features):
                 feature.global_teardown()
-            self.shutdown_features()
 
         if self.show_report:
             self.report()
@@ -175,9 +173,6 @@
         # Remove all features that aren't activated
         self.features = [f for f in self.features if f.active]
 
-    def setup_features(self):
-        pass
-
     def find_tests(self):
         global _layer_name_cache
         _layer_name_cache.clear() # Reset to enforce test isolation
@@ -284,9 +279,6 @@
 
         self.failed = bool(self.import_errors or self.failures or self.errors)
 
-    def shutdown_features(self):
-        pass
-
     def report(self):
         if self.options.resume_layer:
             sys.stdout.close()



More information about the Zope3-Checkins mailing list