[Checkins] SVN: z3c.recipe.paster/trunk/src/z3c/recipe/paster/tests.py fix test setup

Adam Groszer agroszer at gmail.com
Fri Jan 22 08:36:18 EST 2010


Log message for revision 108391:
  fix test setup

Changed:
  U   z3c.recipe.paster/trunk/src/z3c/recipe/paster/tests.py

-=-
Modified: z3c.recipe.paster/trunk/src/z3c/recipe/paster/tests.py
===================================================================
--- z3c.recipe.paster/trunk/src/z3c/recipe/paster/tests.py	2010-01-22 13:15:23 UTC (rev 108390)
+++ z3c.recipe.paster/trunk/src/z3c/recipe/paster/tests.py	2010-01-22 13:36:18 UTC (rev 108391)
@@ -71,12 +71,9 @@
     zc.buildout.testing.install('zope.testing', test)
     zc.buildout.testing.install('zope.traversing', test)
     zc.buildout.testing.install('zope.contenttype', test)
+    zc.buildout.testing.install('zope.app.debug', test)
     zc.buildout.testing.install_develop('z3c.recipe.paster', test)
 
-def setUpDebug(test):
-    setUp(test)
-    zc.buildout.testing.install('zope.app.debug', test)
-
 checker = renormalizing.RENormalizing([
     zc.buildout.testing.normalize_path,
     # note sure if misspelled?) has \n at the end on linux?
@@ -106,7 +103,7 @@
             optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
             checker=checker),
         doctest.DocFileSuite('debug.txt',
-            setUp=setUpDebug, tearDown=zc.buildout.testing.buildoutTearDown,
+            setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
             optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
             checker=checker),
         ))



More information about the checkins mailing list