[Zope3-checkins]
SVN: Zope3/branches/jim-fix-test-ZopeX3-3.0.1-Zope-2.8/src/zope/i18n/locales/tests/test_xmlfactory.py
Changed the test suite to use a leval to avoid running the tests
Jim Fulton
jim at zope.com
Fri Oct 28 16:51:06 EDT 2005
Log message for revision 39697:
Changed the test suite to use a leval to avoid running the tests
normally. These tests will still be run --at 2.
Changed:
U Zope3/branches/jim-fix-test-ZopeX3-3.0.1-Zope-2.8/src/zope/i18n/locales/tests/test_xmlfactory.py
-=-
Modified: Zope3/branches/jim-fix-test-ZopeX3-3.0.1-Zope-2.8/src/zope/i18n/locales/tests/test_xmlfactory.py
===================================================================
--- Zope3/branches/jim-fix-test-ZopeX3-3.0.1-Zope-2.8/src/zope/i18n/locales/tests/test_xmlfactory.py 2005-10-28 20:32:46 UTC (rev 39696)
+++ Zope3/branches/jim-fix-test-ZopeX3-3.0.1-Zope-2.8/src/zope/i18n/locales/tests/test_xmlfactory.py 2005-10-28 20:51:06 UTC (rev 39697)
@@ -25,6 +25,8 @@
class LocaleXMLFileTestCase(TestCase):
"""This test verifies that every locale XML file can be loaded."""
+ level = 2
+
def __init__(self, path):
self.__path = path
TestCase.__init__(self)
@@ -49,20 +51,14 @@
-##def test_suite():
-## suite = TestSuite()
-## locale_dir = os.path.join(os.path.dirname(zope.i18n.__file__),
-## 'locales', 'data')
-## for path in os.listdir(locale_dir):
-## if not path.endswith(".xml"):
-## continue
-## path = os.path.join(locale_dir, path)
-## case = LocaleXMLFileTestCase(path)
-## suite.addTest(case)
-## return suite
-
-# Note: These tests are disabled, just because they take a long time to run.
-# You should run these tests if you update the parsing code and/or
-# update the Locale XML Files.
def test_suite():
- return None
+ suite = TestSuite()
+ locale_dir = os.path.join(os.path.dirname(zope.i18n.__file__),
+ 'locales', 'data')
+ for path in os.listdir(locale_dir):
+ if not path.endswith(".xml"):
+ continue
+ path = os.path.join(locale_dir, path)
+ case = LocaleXMLFileTestCase(path)
+ suite.addTest(case)
+ return suite
More information about the Zope3-Checkins
mailing list