[Zope-dev] (re)moving browser subpackage from zc.catalog?

Marius Gedminas marius at gedmin.as
Wed Oct 13 08:42:42 EDT 2010


On Wed, Oct 13, 2010 at 01:50:39PM +0200, Jan-Wijbrand Kolman wrote:
> On 10/13/10 13:42 , Jan-Wijbrand Kolman wrote:
> > Good idea. This would improve the testing situation. That would
> > definitely help the Grok Toolkit, as it could then run the "normal"
> > tests in the context of the toolkit, without pulling in the dependencies
> > of the browser tests.
> 
> Ah, no it wouldn't help there, as the testrunner would find the tests in 
> the browser subpackage and it would try to run them regardless.

You could always conditionally disable them: in each test*.py file have

    def test_suite():
        suite = unittest.TestSuite()
        if some condition:
            suite.addTest(unittest.makeSuite(...))
            suite.addTest(doctest.DocTestSuite(...))
            suite.addTest(doctest.DocFileSuite(...))
        return suite

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20101013/847420d0/attachment.bin 


More information about the Zope-Dev mailing list