[CMF-checkins] CVS: CMF/CMFCore/tests - test_all.py:1.13

Chris Withers chrisw@nipltd.com
Tue, 12 Feb 2002 08:12:12 -0500


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv27491/CMFCore/tests

Modified Files:
	test_all.py 
Log Message:
Make tests run with testrunner.py again.

=== CMF/CMFCore/tests/test_all.py 1.12 => 1.13 ===
 from unittest import TestSuite, main
-
+from sys import modules
 def test_suite():
     suite = TestSuite()
     for name in [
@@ -16,8 +16,9 @@
         'test_FSPythonScript',
         'test_FSPageTemplate'
         ]:
+        __import__('Products.CMFCore.tests.'+name,globals(),locals())
         suite.addTest(
-            __import__(name,globals(),locals()).test_suite()
+            modules['Products.CMFCore.tests.'+name].test_suite()
             )
     return suite