Commit 46209156 authored by Stefan H. Holek's avatar Stefan H. Holek

Fix test suites.

parent 5e58f341
...@@ -22,10 +22,10 @@ if __name__ == '__main__': ...@@ -22,10 +22,10 @@ if __name__ == '__main__':
def test_suite(): def test_suite():
import unittest import unittest
from Testing.ZopeTestCase import FunctionalDocFileSuite from Testing.ZopeTestCase import FunctionalDocFileSuite
return unittest.TestSuite( return unittest.TestSuite((
FunctionalDocFileSuite( FunctionalDocFileSuite(
'formlib.txt', package='Products.Five.formlib.tests') 'formlib.txt', package='Products.Five.formlib.tests'),
) ))
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
...@@ -77,10 +77,9 @@ def test_registerPackage(): ...@@ -77,10 +77,9 @@ def test_registerPackage():
def test_suite(): def test_suite():
from zope.testing.doctest import DocTestSuite # Must use functional because registerPackage commits
return DocTestSuite() from Testing.ZopeTestCase import FunctionalDocTestSuite
#from Testing.ZopeTestCase import ZopeDocTestSuite return FunctionalDocTestSuite()
#return ZopeDocTestSuite()
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment