Re: [Zope3-dev] Odd functional test failure (testModuleListView)
[Stephan Richter] > You still have to run the unit and functional tests together, so: > > C:\Code\Zope3>\python23\python.exe test.py -vv zope.app.apidoc Indeed! It turns out only one of the unit tests is needed to provoke the failure: C:\Code\Zope3>\python23\python.exe test.py -vv zope.app.apidoc Configuration file found. Running UNIT tests at level 1 Running UNIT tests from C:\Code\Zope3 C:\Code\Zope3\src\zope\app\apidoc\zcmlmodule\README.txt ... ok -- Ran 13 tests in 0.328s OK Running FUNCTIONAL tests at level 1 Running FUNCTIONAL tests from C:\Code\Zope3 Parsing ftesting.zcml testContentsView (zope.app.apidoc.browser.ftests.APIDocTests) ... ok ... testModuleListView (zope.app.apidoc.browser.ftests.APIDocTests) ... Failure in test testModuleListView (zope.app.apidoc.browser.ftests.APIDocTests) Traceback (most recent call last): File "C:\Code\Zope3\src\zope\app\apidoc\browser\ftests.py", line 60, in testModuleListView basic='mgr:mgrpw') File "C:\Code\Zope3\src\zope\app\testing\functional.py", line 371, in checkForBrokenLinks self.fail("%s contains broken links:\n" % path File "C:\python23\lib\unittest.py", line 270, in fail raise self.failureException, msg AssertionError: /++apidoc++/modulelist.html contains broken links: /++apidoc++/./++preferences++/apidoc/@@apidocMenu.html: ForbiddenAttribute: ('__getitem__', ) ... I disabled the other 17 unit tests it normally runs here "by hand" (giving relevant methods an empty docstring, and stuffing "return None" at the start of relevant test_suite() functions). zope/app/apidoc/zcmlmodule/README.txt can be reduced to 3 lines then, and the failure still occurs: >>> from zope.app.apidoc.zcmlmodule import ZCMLModule >>> module = ZCMLModule() >>> module._makeDocStructure() ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Odd functional test failure (testModuleListView)
On Sunday 03 April 2005 19:04, Tim Peters wrote: > Hmm. I cannot reproduce the problem that way, although I'm not > exactly sure what "just run the tests in zope.app.apidoc" means to > you. This is what it means to me (on WinXP): > > C:\Code\Zope3>\python23\python.exe test.py -vvf zope.app.apidoc You still have to run the unit and functional tests together, so: C:\Code\Zope3>\python23\python.exe test.py -vv zope.app.apidoc Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Odd functional test failure (testModuleListView)
[Tim Peters] >> I get a failure today running the unit and functional tests in the same >> run: >> >> """ >> FAIL: testModuleListView (zope.app.apidoc.browser.ftests.APIDocTests) >> ... >> File "C:\Code\Zope3\src\zope\app\testing\functional.py", line 371, >> in checkForBrokenLinks >> self.fail("%s contains broken links:\n" % path >> File "C:\python23\lib\unittest.py", line 270, in fail >> raise self.failureException, msg >> AssertionError: /++apidoc++/modulelist.html contains broken links: >> /++apidoc++/./++preferences++/apidoc/@@apidocMenu.html: >> ForbiddenAttribute: ('__getitem__', >> ) >> """ >> However, the test passes if I leave the unit tests out of the run >> (i.e., test.py -f). [Stephan Richter] > This is my fault. I can reproduce the issue. What's particularly strange is > that I can just run the tests in zope.app.apidoc to reproduce the problem. I > thought I have to run at least the zope.app.preference tests too. Mmmh, I > have to dig a while to figure out what's going on. Hmm. I cannot reproduce the problem that way, although I'm not exactly sure what "just run the tests in zope.app.apidoc" means to you. This is what it means to me (on WinXP): C:\Code\Zope3>\python23\python.exe test.py -vvf zope.app.apidoc Configuration file found. Running FUNCTIONAL tests at level 1 Running FUNCTIONAL tests from C:\Code\Zope3 Parsing ftesting.zcml testContentsView (zope.app.apidoc.browser.ftests.APIDocTests) ... ok testIndexView (zope.app.apidoc.browser.ftests.APIDocTests) ... ok testMenu (zope.app.apidoc.browser.ftests.APIDocTests) ... ok testModuleListView (zope.app.apidoc.browser.ftests.APIDocTests) ... ok testClassDetailsView (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok testFunctionDetailsView (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok testMenu (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok testMenuCodeFinder (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok testModuleDetailsView (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok testTextFileDetailsView (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok testZCMLFileDetailsView (zope.app.apidoc.codemodule.browser.ftests.CodeModuleTests) ... ok C:\Code\Zope3\src\zope\app\apidoc\codemodule\browser\introspector.txt ... ok testInterfaceDetailsView (zope.app.apidoc.ifacemodule.ftests.InterfaceModuleTests) ... ok testMenu (zope.app.apidoc.ifacemodule.ftests.InterfaceModuleTests) ... ok testMenu (zope.app.apidoc.utilitymodule.ftests.UtilityModuleTests) ... ok testUtilityDetailsView (zope.app.apidoc.utilitymodule.ftests.UtilityModuleTests) ... ok testDirectiveDetailsView (zope.app.apidoc.zcmlmodule.ftests.ZCMLModuleTests) ... ok testMenu (zope.app.apidoc.zcmlmodule.ftests.ZCMLModuleTests) ... ok -- Ran 22 tests in 16.000s OK C:\Code\Zope3> ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Odd functional test failure (testModuleListView)
On Saturday 02 April 2005 17:58, Tim Peters wrote: > I get a failure today running the unit and functional tests in the same > run: > > """ > FAIL: testModuleListView (zope.app.apidoc.browser.ftests.APIDocTests) > -- > Traceback (most recent call last): > File "C:\Code\Zope3\src\zope\app\apidoc\browser\ftests.py", line 60, > in testModuleListView > basic='mgr:mgrpw') > File "C:\Code\Zope3\src\zope\app\testing\functional.py", line 371, > in checkForBrokenLinks > self.fail("%s contains broken links:\n" % path > File "C:\python23\lib\unittest.py", line 270, in fail > raise self.failureException, msg > AssertionError: /++apidoc++/modulelist.html contains broken links: > /++apidoc++/./++preferences++/apidoc/@@apidocMenu.html: > ForbiddenAttribute: ('__getitem__', > ) > """ > However, the test passes if I leave the unit tests out of the run > (i.e., test.py -f). This is my fault. I can reproduce the issue. What's particularly strange is that I can just run the tests in zope.app.apidoc to reproduce the problem. I thought I have to run at least the zope.app.preference tests too. Mmmh, I have to dig a while to figure out what's going on. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com