Re: (re)moving browser subpackage from zc.catalog?
Marius Gedminas <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <20101013124242.GA16730@platonas> |
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
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAky1qT4ACgkQkVdEXeem14/A9ACffe2adI0aWOkvERmobmfT8Nmz BKoAnizAD0zrKpRpDBtbChuiRne2pLWo =infQ -----END PGP SIGNATURE-----