Re: [Zope-dev] zope.testing / zope.testrunner path forward:

2010-07-27 Thread Jonathan Lange
On Tue, Jul 20, 2010 at 5:32 PM, Lennart Regebro wrote: > I'd like to put down some effort this week during the EuroPython > sprint to go forward with zope.testing for Python 3. zope.testing > 3.9.5 is already deprecating zope.testing.testrunner, but I need to > remove it so that I can port zope.t

Re: [Zope-dev] ./bin/test failing with trunk zope.testing

2010-07-18 Thread Jonathan Lange
On Sun, Jul 18, 2010 at 5:56 PM, Hanno Schlichting wrote: > Hi. > > On Sun, Jul 18, 2010 at 5:50 PM, Jonathan Lange wrote: >> When running zope.testing's tests on my laptop, I get many failures. >> I've run the tests plenty of times before and haven't got t

[Zope-dev] ./bin/test failing with trunk zope.testing

2010-07-18 Thread Jonathan Lange
Hello, When running zope.testing's tests on my laptop, I get many failures. I've run the tests plenty of times before and haven't got these failures. Am a bit mystified, so I'd appreciate any help. jml Running zope.testrunner.layer.UnitTests tests: Set up zope.testrunner.layer.UnitTests in 0.00

Re: [Zope-dev] zope.testing 4.0.0 coming up.

2010-04-27 Thread Jonathan Lange
On Tue, Apr 27, 2010 at 8:30 PM, Lennart Regebro wrote: > I've been working on zope.tetsing lately. The main impetus behind this > is Python 3 compatibility, but also general cleanup. This work was > discussed on #zope bu Jim Fulton, Stephan Richter,  Charlie Clark and > me. The conclusion was to

Re: [Zope-dev] RFC: Proposed new style for documenting and testing ZTK packages

2010-04-19 Thread Jonathan Lange
On Mon, Apr 19, 2010 at 6:42 PM, Marius Gedminas wrote: > On Mon, Apr 19, 2010 at 03:56:02PM +0200, Wichert Akkerman wrote: >> On 4/19/10 15:48 , Marius Gedminas wrote: >> >      def doctest_MyClass_bar(): >> >          """Test MyClass.bar >> > >> >              >>>  y = MyClass() >> > >> >      

Re: [Zope-dev] RFC: Proposed new style for documenting and testing ZTK packages

2010-04-19 Thread Jonathan Lange
On Mon, Apr 19, 2010 at 3:03 PM, Lennart Regebro wrote: > On Mon, Apr 19, 2010 at 15:48, Marius Gedminas wrote: >> If you've the discipline to keep the doctests short, I don't see why you >> shouldn't continue writing them instead of unit tests > > Because they are a bitch to debug, relies on det

Re: [Zope-dev] Circular dependency hell.

2010-04-16 Thread Jonathan Lange
On Fri, Apr 16, 2010 at 6:05 PM, Lennart Regebro wrote: ... > == Suggestion 1 == > > I think we should deprecate zope.testing. Completely. There has been > some discussion about deprecating it for something else, but I think > we should just deprecate it. Just say "Don't use zope.testing, it's > p

[Zope-dev] zope.app.component broken with zope.component 3.8.0 and greater?

2010-04-11 Thread Jonathan Lange
Hello, I'm trying to update my application to use the recent patch that Tres Seaver helpfully landed on zope.app.testing. The new zope.app.testing seems to require a new zope.component, since it's importing hooks from z.component rather than zope.site. However, when I update zope.component, I ge

Re: [Zope-dev] [PATCH] Better error support in subunit output formatter

2010-04-10 Thread Jonathan Lange
On Sat, Apr 10, 2010 at 7:16 PM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jonathan Lange wrote: >> Hello, >> >> The subunit output formatter that was added recently currently raises >> NotImplementedError when it's given a

[Zope-dev] [PATCH] zope.app.testing: Use doctest instead of deprecated zope.testing.doctest

2010-04-10 Thread Jonathan Lange
Hello, Recent versions of zope.testing deprecate the zope.testing.doctest module in favour of the standard library's doctest module. zope.app.testing currently uses zope.testing.doctest for its tests and to provide its functional testing features. This patch changes it to use standard library doct

[Zope-dev] [PATCH] Better error support in subunit output formatter

2010-04-10 Thread Jonathan Lange
Hello, The subunit output formatter that was added recently currently raises NotImplementedError when it's given a generic "error". The error() method on formatters is used to communicate user error (e.g. when the user selects incompatible options), internal framework errors (afaict, only when the

Re: [Zope-dev] [PATCH] subunit output for zope.testing

2010-03-11 Thread Jonathan Lange
On Thu, Mar 11, 2010 at 9:17 PM, Marius Gedminas wrote: > On Thu, Mar 11, 2010 at 08:52:11PM +0000, Jonathan Lange wrote: >> For a long time, I've wanted to have a subunit output formatter for >> zope.testing. Subunit is a language-generic streaming protocol for >>