[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/container/tests/test_constraints.py Do same tearDown as setUp otherwise test -D fails here.

Florent Guillaume fg at nuxeo.com
Fri Dec 2 12:51:22 EST 2005


Log message for revision 40495:
  Do same tearDown as setUp otherwise test -D fails here.
  

Changed:
  U   Zope3/trunk/src/zope/app/container/tests/test_constraints.py

-=-
Modified: Zope3/trunk/src/zope/app/container/tests/test_constraints.py
===================================================================
--- Zope3/trunk/src/zope/app/container/tests/test_constraints.py	2005-12-02 17:42:58 UTC (rev 40494)
+++ Zope3/trunk/src/zope/app/container/tests/test_constraints.py	2005-12-02 17:51:22 UTC (rev 40495)
@@ -21,11 +21,14 @@
 def setUp(test):
     module.setUp(test, 'zope.app.container.constraints_txt')
 
+def tearDown(test):
+    module.tearDown(test, 'zope.app.container.constraints_txt')
+
 def test_suite():
     return unittest.TestSuite((
         doctest.DocTestSuite('zope.app.container.constraints'),
         doctest.DocFileSuite('../constraints.txt',
-                             setUp=setUp, tearDown=module.tearDown),
+                             setUp=setUp, tearDown=tearDown),
         ))
 
 if __name__ == '__main__': unittest.main()



More information about the Zope3-Checkins mailing list