[Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
Summary of messages to the zope-tests list. Period Sun May 2 12:00:00 2010 UTC to Mon May 3 12:00:00 2010 UTC. There were 16 messages: 6 from Zope Tests, 9 from ccomb at free.fr, 1 from ct at gocept.com. Test failures - Subject: FAILED: Repository policy check found errors in 670 projects From: ct at gocept.com Date: Sun May 2 21:17:48 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014232.html Subject: FAILED : ZTK 1.0dev / Python2.4.6 Linux 32bit From: ccomb at free.fr Date: Mon May 3 00:04:42 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014243.html Subject: FAILED : Zope 3.4.1 KGS / Python2.4.6 32bit linux From: ccomb at free.fr Date: Mon May 3 00:27:11 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014246.html Subject: FAILED : Zope 3.4.1 KGS / Python2.5.2 32bit linux From: ccomb at free.fr Date: Mon May 3 00:51:14 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014247.html Unknown --- Subject: UNKNOWN : Zope-2.12 Python-2.6.4 : Linux From: Zope Tests Date: Sun May 2 21:32:41 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014235.html Subject: UNKNOWN : Zope-2.12-alltests Python-2.6.4 : Linux From: Zope Tests Date: Sun May 2 21:34:41 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014236.html Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Sun May 2 21:28:41 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014233.html Subject: OK : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Sun May 2 21:30:41 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014234.html Subject: OK : Zope-trunk Python-2.6.4 : Linux From: Zope Tests Date: Sun May 2 21:36:41 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014237.html Subject: OK : Zope-trunk-alltests Python-2.6.4 : Linux From: Zope Tests Date: Sun May 2 21:38:41 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014238.html Subject: OK : BlueBream template / Python2.7b1 32bit linux From: ccomb at free.fr Date: Sun May 2 22:00:53 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014239.html Subject: OK : BlueBream template / Python2.6.4 32bit linux From: ccomb at free.fr Date: Sun May 2 22:00:57 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014241.html Subject: OK : BlueBream template / Python2.5.2 32bit linux From: ccomb at free.fr Date: Sun May 2 22:00:58 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014240.html Subject: OK : BlueBream template / Python2.4.6 32bit linux From: ccomb at free.fr Date: Sun May 2 22:00:58 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014242.html Subject: OK : ZTK 1.0dev / Python2.5.2 Linux 32bit From: ccomb at free.fr Date: Mon May 3 00:06:09 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014244.html Subject: OK : ZTK 1.0dev / Python2.6.4 Linux 32bit From: ccomb at free.fr Date: Mon May 3 00:06:19 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014245.html ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Test failures > - > > Subject: FAILED: Repository policy check found errors in 670 projects > From: ct at gocept.com > Date: Sun May 2 21:17:48 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014232.html Expected breakage. > Subject: FAILED : ZTK 1.0dev / Python2.4.6 Linux 32bit > From: ccomb at free.fr > Date: Mon May 3 00:04:42 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014243.html Breakage in the following packages, but only on Python 2.4, and only in doctests: - - zope.browserpage - - zope.viewlet - - zope.contentprovider - - zope.deferredimport At least the first one is due to doctests not exposing an '__file__' in their faux-module globals under 2.4. We might need to add Lennart's monkeypatch under 2.4, or else drop 2.4 support altogether. > Subject: UNKNOWN : Zope-2.12 Python-2.6.4 : Linux > From: Zope Tests > Date: Sun May 2 21:32:41 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014235.html > > Subject: UNKNOWN : Zope-2.12-alltests Python-2.6.4 : Linux > From: Zope Tests > Date: Sun May 2 21:34:41 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-May/014236.html These two are my bad: I broke the 2.12 branch by backporting a fix badly from the trunk. They should run fine tonight. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvfD8UACgkQ+gerLs4ltQ6qjACfWkupVd3mvHfmdqaZDGLs9JnV mBoAoKnT9k9dAhj4jwvmDcL+eqpmbqe3 =1fOA -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Mon, May 3, 2010 at 8:02 PM, Tres Seaver wrote: > Breakage in the following packages, but only on Python 2.4, and only in > doctests: > > - - zope.browserpage > - - zope.viewlet > - - zope.contentprovider > - - zope.deferredimport > > At least the first one is due to doctests not exposing an '__file__' in > their faux-module globals under 2.4. We might need to add Lennart's > monkeypatch under 2.4, or else drop 2.4 support altogether. Hhm. I'm inclined to drop 2.4 support here. Using a zope.testing that tries to be compatible all the way from 2.4 to 3.1 is quite a bit of a stretch. Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
Am 03.05.2010, 20:06 Uhr, schrieb Hanno Schlichting : > Hhm. I'm inclined to drop 2.4 support here. Using a zope.testing that > tries to be compatible all the way from 2.4 to 3.1 is quite a bit of a > stretch. +1 Python 2.4 itself is on life-support only*. I know it's an abrupt change for anyone coming from the Zope 2 world but that's largely because we were so slow in making the change ourselves. Charlie * I am actually aware of several commercial Python deployments that run only on < 2.1 and they have all kinds of problems of their own. -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Mon, May 3, 2010 at 20:02, Tres Seaver wrote: > At least the first one is due to doctests not exposing an '__file__' in > their faux-module globals under 2.4. We might need to add Lennart's > monkeypatch under 2.4, or else drop 2.4 support altogether. Well, I don't want a monkey-patch product just for 2.4, and the monkeypatches was voted off from zope.testing because they are evil in the first place. The tests might pass __file__ in explicitly, maybe? Otherwise dropping 2.4 is probably the only reasonable option. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
Hanno Schlichting a écrit : > On Mon, May 3, 2010 at 8:02 PM, Tres Seaver wrote: >> Breakage in the following packages, but only on Python 2.4, and only in >> doctests: >> >> - - zope.browserpage >> - - zope.viewlet >> - - zope.contentprovider >> - - zope.deferredimport >> >> At least the first one is due to doctests not exposing an '__file__' in >> their faux-module globals under 2.4. We might need to add Lennart's >> monkeypatch under 2.4, or else drop 2.4 support altogether. > > Hhm. I'm inclined to drop 2.4 support here. Using a zope.testing that > tries to be compatible all the way from 2.4 to 3.1 is quite a bit of a > stretch. Unless I missed something, the ZTK was globally compatible with Python2.4 recently, wasn't it? Do we want the latest changes and Lennart's work to be part of the ZTK 1.0? If not, the svn branches used for the ZTK 1.0dev should be updated to point to a maintenance branch. (I suppose it's our job) Christophe > > Hanno > ___ > Zope-Dev maillist - Zope-Dev@zope.org > 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 ) ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Tue, May 4, 2010 at 12:41 AM, Christophe Combelles wrote: > Hanno Schlichting a écrit : >> Hhm. I'm inclined to drop 2.4 support here. Using a zope.testing that >> tries to be compatible all the way from 2.4 to 3.1 is quite a bit of a >> stretch. > > Unless I missed something, the ZTK was globally compatible with Python2.4 > recently, wasn't it? Do we want the latest changes and Lennart's work to be > part of the ZTK 1.0? > > If not, the svn branches used for the ZTK 1.0dev should be updated to point > to a > maintenance branch. > (I suppose it's our job) Dropping Python 2.4 supports makes most sense to me at this stage. Zope2/Plone only support Python 2.6 for any modern version. I don't know what BlueBream and Grok want to support, but would guess they aim for Python 2.5 + 2.6 support. 2.4 is really old by now. Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christophe Combelles wrote: > Hanno Schlichting a écrit : >> On Mon, May 3, 2010 at 8:02 PM, Tres Seaver wrote: >>> Breakage in the following packages, but only on Python 2.4, and only in >>> doctests: >>> >>> - - zope.browserpage >>> - - zope.viewlet >>> - - zope.contentprovider >>> - - zope.deferredimport >>> >>> At least the first one is due to doctests not exposing an '__file__' in >>> their faux-module globals under 2.4. We might need to add Lennart's >>> monkeypatch under 2.4, or else drop 2.4 support altogether. >> Hhm. I'm inclined to drop 2.4 support here. Using a zope.testing that >> tries to be compatible all the way from 2.4 to 3.1 is quite a bit of a >> stretch. > > Unless I missed something, the ZTK was globally compatible with Python2.4 > recently, wasn't it? Do we want the latest changes and Lennart's work to be > part of the ZTK 1.0? I recall a general consensus that we would be officially supporting Python 2.5 and 2.6, and that we wouldn't deliberately break Python 2.4 without good reason. A spacial exception was for zope.interface, zope.component, zope.configuration, and their dependencies: because they were already in much wider use outside traditional Zope projects, Python 2.4 compatibility for the "bicycle seat toolkit" package subset was identified as being *more* important than the ZTK as a whole: At this point, Lennart's work has been aimed at increasing "forward" compatibility with Python >= 3.1.x: I believe that trading away 2.4.x compatibility in order to get 3.1.x compatibility is a sane choice. > If not, the svn branches used for the ZTK 1.0dev should be updated to point > to a > maintenance branch. (I suppose it's our job) Before you go down that road, I would argue that somebody needs to speak up who actually needs the whole ZTK (and zopeapp) to run on Pythonn 2.4. In particular, this means somebody who has an existing application which *both* requires staying on Python 2.4 *and* expects to be updated to use ztk.cfg and / or zopeapp.cfg, rather than a project-specific KGS or index. Note that I believe the intersection of those two sets is very likely empty at this point. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvfa34ACgkQ+gerLs4ltQ7pAACfT3lbi0uf7WhIFHXn0cxJwGYE 7UIAoNpSp6sNBAUfYAnf+3e9Bf99CjTS =LCYP -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Tue, May 4, 2010 at 4:24 AM, Hanno Schlichting wrote: > Dropping Python 2.4 supports makes most sense to me at this stage. > Zope2/Plone only support Python 2.6 for any modern version. > > I don't know what BlueBream and Grok want to support, but would guess > they aim for Python 2.5 + 2.6 support. 2.4 is really old by now. Python 2.4 will be supported for BB 1.0 release, but the package versions for that release is already freezed, so no problem for dropping 2.4 support. AFAIK, Grok 1.1 release versions are also freezed as a release candidate is out. Regards, Baiju M ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Tue, May 4, 2010 at 00:41, Christophe Combelles wrote: > Unless I missed something, the ZTK was globally compatible with Python2.4 > recently, wasn't it? Do we want the latest changes and Lennart's work to be > part of the ZTK 1.0? I think it's OK if they are not. Of course it would be cool if 1.0 does include the latest and greatest, but my changes are mostly aimed at Python 3 compatibility, and ZTK 1.0 will not have that as a whole anyway. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Mon, May 3, 2010 at 20:02, Tres Seaver wrote: > - - zope.browserpage > - - zope.viewlet > - - zope.contentprovider > - - zope.deferredimport These tests all fail because as Tres pointed out, Python 2.4 doesn't set __file__ to the doctest filename in the globals. Zope.browserpage in turn uses those globals to determine the filename of the pagetemplate. So, you get an error if you create a browserpage in a DocTestFile, like so: ErrorPage = SimpleViewClass(errorFileName, name='error.html') Passing in file explicitly solves the problem: ErrorPage = SimpleViewClass(errorFileName, name='error.html', offering={'__file__': 'README.txt'}) The same thing goes for ViewPagetemplateFile, but there it's called _prefix instead of offering. Yeah, none of those variable names make sense. It can also typically be fixed by passing in __file__ explicitly to the doctest: def test_suite(): import doctest filename = os.path.join(os.pardir, 'namedtemplate.txt') return doctest.DocFileSuite( filename, setUp=pageSetUp, tearDown=zope.component.testing.tearDown, globs={'__file__': os.path.abspath(os.path.join(os.path.dirname(__file__), filename))} ) Other options is to make the usage of __file__ lazy, so that it's only looked up in the globals when accessed. Because I suspect it's not actually used except when you get errors, but I'm not 100% sure. So for the time being, I went for passing in __file__ explicitly in globs. The tests run under Python 2.4 again. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
Hi there, Christophe Combelles wrote: > Unless I missed something, the ZTK was globally compatible with Python2.4 > recently, wasn't it? Do we want the latest changes and Lennart's work to be > part of the ZTK 1.0? For a while already people have been making changes that at least break tests on 2.4. For instance, zope.testing has some facility to pretty print a dictionary that sorts the keys, because Python 2.4's built-in pretty print module apparently doesn't do that yet, meaning random test failures can happen. But people have been updating code to use Python's built-in pretty print facility and this will only be reliable on Python 2.5 and higher. In my opinion it's time to drop Python 2.4 support anyway, but it's been going a bit haphazardly by way of bit rot.. Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
Hanno Schlichting wrote: > Dropping Python 2.4 supports makes most sense to me at this stage. > Zope2/Plone only support Python 2.6 for any modern version. > > I don't know what BlueBream and Grok want to support, but would guess > they aim for Python 2.5 + 2.6 support. 2.4 is really old by now. Grok 1.1 aims for 2.5 and 2.6. Grok 1.0 goes for 2.4 and 2.5, but Grok 1.0's stable so we don't have problems when the ZTK is updated. Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On Tue, May 4, 2010 at 12:07, Martijn Faassen wrote: > For a while already people have been making changes that at least break > tests on 2.4. For instance, zope.testing has some facility to pretty > print a dictionary that sorts the keys, because Python 2.4's built-in > pretty print module apparently doesn't do that yet, meaning random test > failures can happen. But people have been updating code to use Python's > built-in pretty print facility and this will only be reliable on Python > 2.5 and higher. Although that zope.testing facility has been deprecated, as far as I'm aware it's still there... If not maybe it should be reintroduced, we're suppose dto deprecate, not break in this case. > In my opinion it's time to drop Python 2.4 support anyway, but it's been > going a bit haphazardly by way of bit rot.. Yeah, officially dropping is better than bitrot dropping it, that's for sure. And as mentioned, except for the "Bicycle toolkit" or whatever the name is, 2.4 is not needed any more. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: > On Mon, May 3, 2010 at 20:02, Tres Seaver wrote: >> - - zope.browserpage >> - - zope.viewlet >> - - zope.contentprovider >> - - zope.deferredimport > > These tests all fail because as Tres pointed out, Python 2.4 doesn't > set __file__ to the doctest filename in the globals. Zope.browserpage > in turn uses those globals to determine the filename of the > pagetemplate. So, you get an error if you create a browserpage in a > DocTestFile, like so: > > ErrorPage = SimpleViewClass(errorFileName, name='error.html') > > Passing in file explicitly solves the problem: > > ErrorPage = SimpleViewClass(errorFileName, name='error.html', > offering={'__file__': 'README.txt'}) > > The same thing goes for ViewPagetemplateFile, but there it's called > _prefix instead of offering. Yeah, none of those variable names make > sense. > It can also typically be fixed by passing in __file__ explicitly to the > doctest: > > def test_suite(): > import doctest > filename = os.path.join(os.pardir, 'namedtemplate.txt') > return doctest.DocFileSuite( > filename, > setUp=pageSetUp, tearDown=zope.component.testing.tearDown, > globs={'__file__': > os.path.abspath(os.path.join(os.path.dirname(__file__), filename))} > ) > > Other options is to make the usage of __file__ lazy, so that it's only > looked up in the globals when accessed. Because I suspect it's not > actually used except when you get errors, but I'm not 100% sure. > > So for the time being, I went for passing in __file__ explicitly in > globs. The tests run under Python 2.4 again. Cool. I was afraid we were looking at something more insidious than that. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvgFckACgkQ+gerLs4ltQ7mtwCfSlKCCD/dyzxDjT1SQTWokT5F qaAAoNYBsgA/PqKHdhnLXtRE9iJFy0Im =P4PS -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown
On May 4, 2010, at 6:07 AM, Martijn Faassen wrote: > For a while already people have been making changes that at least break > tests on 2.4. For instance, zope.testing has some facility to pretty print a > dictionary that sorts the keys, because Python 2.4's built-in pretty print > module apparently doesn't do that yet, The pprint version in Python 2.4 sorts dictionaries too, but only if they don't fit on a single line of output. > meaning random test failures can happen. But people have been updating code > to use Python's built-in pretty print facility and this will only be reliable > on Python 2.5 and higher. I already corrected one such checkin with a simple workaround. >>> pprint(somedict, width=1) This causes Python 2.4 to pretty print somedict one item per line, and thus forces it to sort it. So the tests using pprint can be made reliable on Python 2.4 to 2.6. Zvezdan ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )