[Checkins] SVN: grok/trunk/src/grok/ftests/test_grok_functional.py
Allow the functional layer to be torn down. This simplifies
the whole testing
Philipp von Weitershausen
philikon at philikon.de
Sat Jul 12 11:37:51 EDT 2008
Log message for revision 88292:
Allow the functional layer to be torn down. This simplifies the whole testing
procedure when this isn't the last layer run by the test runner because the test
runner doesn't have to spawn new processes (which has all sorts of disadvantages,
e.g. lack of debugging capabilities, etc.).
This change helps a lot when you're running tests with zope.testing 3.6.0 which
treats unit tests as just another layer, and therefore doesn't guarantee that
they're run before other layers.
Changed:
U grok/trunk/src/grok/ftests/test_grok_functional.py
-=-
Modified: grok/trunk/src/grok/ftests/test_grok_functional.py
===================================================================
--- grok/trunk/src/grok/ftests/test_grok_functional.py 2008-07-12 15:34:46 UTC (rev 88291)
+++ grok/trunk/src/grok/ftests/test_grok_functional.py 2008-07-12 15:37:51 UTC (rev 88292)
@@ -9,7 +9,8 @@
FunctionalTestSetup, sync, ZCMLLayer)
ftesting_zcml = os.path.join(os.path.dirname(grok.__file__), 'ftesting.zcml')
-GrokFunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'GrokFunctionalLayer')
+GrokFunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'GrokFunctionalLayer',
+ allow_teardown=True)
def setUp(test):
FunctionalTestSetup().setUp()
More information about the Checkins
mailing list