[Zope3-dev] RE: [Zope3-checkins] SVN:
Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/Disabled a
couple of tests that fail when run as part of theZope 2.8
Roger Ineichen
dev at projekt01.ch
Fri Mar 18 11:01:38 EST 2005
Hi Stefan
Just a hint, we use the follwing method for mark tests
as broken or disabled in our project.
Put the real test function in a docstring and print
disabled or a meaningfull message like:
def test_FileChunk(self):
print ''
print ' ... broken, Zope3 FileChunk bug, See issues No. xxx'
"""
file = self.makeTestObject()
fc = FileChunk('Foobar'*4000)
file.data = fc
self.assertEqual(file.getSize(), 6*4000)
"""
This way can every body see that the test is broken and get long
TraceBack messages.
Regards
Roger Ineichen
Projekt01 GmbH
www.projekt01.ch
_____________________________
END OF MESSAGE
> -----Original Message-----
> From: zope3-checkins-bounces at zope.org
> [mailto:zope3-checkins-bounces at zope.org] On Behalf Of Stefan H. Holek
> Sent: Friday, March 18, 2005 4:31 PM
> To: zope3-checkins at zope.org
> Subject: [Zope3-checkins] SVN:
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/Disabled a
> couple of tests that fail when run as part of theZope 2.8
>
> Log message for revision 29559:
> Disabled a couple of tests that fail when run as part of
> the Zope 2.8
> test suite. These failures are due to differences in STX,
> reST, and ZConfig
> versions and/or configurations. We see no point in dealing
> with this at the
> moment. To locate the disabled tests grep for the string "DISABLED".
>
>
> Changed:
> U
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/class
> module/browser.py
> U
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/iface
> module/browser.py
> U
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/renderer/rest.py
> U
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/server/tests
> /test_accesslog.py
>
> -=-
> Modified:
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/class
> module/browser.py
> ===================================================================
> ---
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/class
> module/browser.py 2005-03-18 13:53:02 UTC (rev 29558)
> +++
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/class
> module/browser.py 2005-03-18 15:31:23 UTC (rev 29559)
> @@ -574,8 +574,10 @@
> >>> from tests import getClassDetailsView
> >>> view = getClassDetailsView()
>
> - >>> print view.getDoc()[23:80]
> - <p>Represent the Documentation of any possible class.</p>
> + DISABLED due to differences in STX behavior between
> + Zope 2.8 and Zope 3. Consequence of Five integration.
> + #>>> print view.getDoc()[23:80]
> + #<p>Represent the Documentation of any possible class.</p>
> """
> return renderText(self.context.getDocString() or '',
> zapi.getParent(self.context).getPath())
> @@ -594,12 +596,14 @@
> >>> from tests import getModuleDetailsView
> >>> view = getModuleDetailsView()
>
> - >>> print view.getDoc().strip()
> - <div class="document">
> - <p>Class Documentation Module</p>
> - <p>This module is able to take a dotted name of
> any class and display
> - documentation for it.</p>
> - </div>
> + DISABLED due to differences in STX behavior between
> + Zope 2.8 and Zope 3. Consequence of Five integration.
> + #>>> print view.getDoc().strip()
> + #<div class="document">
> + #<p>Class Documentation Module</p>
> + #<p>This module is able to take a dotted name of
> any class and display
> + #documentation for it.</p>
> + #</div>
> """
> text = self.context.getDocString()
> if text is None:
>
> Modified:
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/iface
> module/browser.py
> ===================================================================
> ---
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/iface
> module/browser.py 2005-03-18 13:53:02 UTC (rev 29558)
> +++
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/apidoc/iface
> module/browser.py 2005-03-18 15:31:23 UTC (rev 29559)
> @@ -240,8 +240,11 @@
>
> >>> from tests import getInterfaceDetails
> >>> details = getInterfaceDetails()
> - >>> details.getDoc()[:55]
> - '<div class="document">\n<p>This is the Foo interface</p>'
> +
> + DISABLED due to differences in STX behavior between
> + Zope 2.8 and Zope 3. Consequence of Five integration.
> + #>>> details.getDoc()[:55]
> + #'<div class="document">\n<p>This is the Foo interface</p>'
> """
> # We must remove all proxies here, so that we get
> the context's
> # __module__ attribute. If we only remove security
> proxies, the
>
> Modified:
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/renderer/rest.py
> ===================================================================
> ---
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/renderer/
> rest.py 2005-03-18 13:53:02 UTC (rev 29558)
> +++
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/renderer/
> rest.py 2005-03-18 15:31:23 UTC (rev 29559)
> @@ -128,14 +128,17 @@
> ... This is more source.
> ... ''')
> >>> renderer = ReStructuredTextToHTMLRenderer(source,
> TestRequest())
> - >>> print renderer.render().strip()
> - <div class="document">
> - <p>This is source.</p>
> - <div class="section" id="header-3">
> - <h3><a name="header-3">Header 3</a></h3>
> - <p>This is more source.</p>
> - </div>
> - </div>
> +
> + DISABLED due to differences in reST behavior between
> + Zope 2.8 and Zope 3. Consequence of Five integration.
> + #>>> print renderer.render().strip()
> + #<div class="document">
> + #<p>This is source.</p>
> + #<div class="section" id="header-3">
> + #<h3><a name="header-3">Header 3</a></h3>
> + #<p>This is more source.</p>
> + #</div>
> + #</div>
> """
>
>
>
> Modified:
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/server/tests
> /test_accesslog.py
> ===================================================================
> ---
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/server/tests
> /test_accesslog.py 2005-03-18 13:53:02 UTC (rev 29558)
> +++
> Zope3/branches/ZopeX3-3.0.0-Zope-2.8/src/zope/app/server/tests
> /test_accesslog.py 2005-03-18 15:31:23 UTC (rev 29559)
> @@ -71,4 +71,8 @@
>
>
> def test_suite():
> - return unittest.makeSuite(TestAccessLogging)
> + # DISABLED TestAccessLogging as it fails due to
> differences in ZConfig of
> + # Zope 2.8 and Zope 3 and we really don't want to deal with this.
> + # Consequence of Five integration.
> + ##return unittest.makeSuite(TestAccessLogging)
> + return unittest.TestSuite()
>
> _______________________________________________
> Zope3-Checkins mailing list
> Zope3-Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-checkins
>
More information about the Zope3-dev
mailing list