Re: [Checkins] SVN: zope.testing/trunk/ - fix test failure on Python 2.4 because of slight difference in the way

Christian Theune <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Organization gocept gmbh & co. kg
Message-ID <1240008249.8462.9.camel@mindy>
On Mon, 2009-04-13 at 11:43 -0400, Benji York wrote:
> Log message for revision 99151:
>   - fix test failure on Python 2.4 because of slight difference in the way
>     coverage is reported (__init__ files with only a single comment line are now
>     not reported)
>   - fixed bug that caused the test runner to hang when running subprocesses (as a
>     result Python 2.3 is no longer supported).

Ah, great. I was working towards a fix as well, but hadn't had time to
fix that. For me this only appeared on 2.5, not 2.4, same for you?

Something that I also see: the output of subprocesses is only displayed
after the subprocess finished which also gives the impression of hangs
also it just takes time.
 
> +# unfortunately there is a zope.testing.testrunner.subprocess module that we
> +# need to avoid; also, we want to support Python 2.4, which doesn't have
> +# # from __future__ import absolute_import, so we use a hack instead
> +import imp
> +subprocess = imp.load_module('subprocess', *imp.find_module('subprocess'))
> +

I found that as well. I would also be happy to rename the local
subprocess module as it's really an implementation detail.

Christian

-- 
Christian Theune · [email protected]
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope3-Checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope3-checkins
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAknpBjcACgkQdUt9X/gknwKK3QCg0T4FpLL4ajPcqkgfHmE5hVP8
aNEAoOECAaILTq8Uae5hQFgPo45LErbe
=Zh9i
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.