[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/ftests/test_i18n.py Changed to pass a sequence of suites to unittest.TestSuite, rather

Jim Fulton jim at zope.com
Thu Nov 10 13:13:21 EST 2005


Log message for revision 40034:
  Changed to pass a sequence of suites to unittest.TestSuite, rather
  than a suite. Passing the suite caused the suite to be lost, this
  losing the layer information.  Which caused the tests to be treated as
  unit tests, rather that functional tests.
  

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/ftests/test_i18n.py

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/ftests/test_i18n.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/ftests/test_i18n.py	2005-11-10 17:56:53 UTC (rev 40033)
+++ Zope3/trunk/src/zope/app/form/browser/ftests/test_i18n.py	2005-11-10 18:13:20 UTC (rev 40034)
@@ -60,10 +60,10 @@
     implements(IFieldContent)
 
 def test_suite():
-    return unittest.TestSuite((
+    return unittest.TestSuite([
         FunctionalDocFileSuite('i18n.txt', package='zope.app.form.browser',
                                optionflags=doctest.ELLIPSIS)
-        ))
+        ])
 
 if __name__ == '__main__':
     unittest.main(defaultTest='test_suite')



More information about the Zope3-Checkins mailing list