[Zope] Re: [Zope-Annce] ANNOUNCE: Zope 2.3.1 beta 2 released

Oleg Broytmann Oleg Broytmann <phd@mail2.phd.pp.ru>
Mon, 19 Mar 2001 18:12:50 +0300 (MSK)


Hi!

On Fri, 16 Mar 2001, Chris McDonough wrote:
> > > The unit tests are pretty complicated.  If you can't figure them out or
> > > where to put a test, a command-line demonstration of the problem at the
> > > Python prompt would be just as good (we'll turn it into a unit test).

   I started with triing to run the test as is from command-line. I created
zope.mbox full of my old russian emails and ran the test. It failed:

checkTimeBulkIndex (__main__.TestTimeIndex) ...
   loading data took 0.185411930084 seconds..
   bulk index took 0.881116986275 seconds..
   total time for load and index was 1.06652891636 seconds..
ok
checkTimeIncrementalIndexAndQuery (__main__.TestTimeIndex) ...
   total time for load and index was 0.973206996918 seconds..

        ======================================================================
        FAIL
        ----------------------------------------------------------------------
        Traceback (innermost last):
          File "testCatalogTiming.py", line 95, in
checkTimeIncrementalIndexAndQuery
            assert len(rs) == max, len(rs)
        AssertionError: 0
        ======================================================================
checkTimeSubcommit (__main__.TestTimeIndex) ...
   testing subcommit at theshhold of None
   total time with subcommit thresh None was 0.161839962006 seconds..
   testing subcommit at theshhold of 100
   total time with subcommit thresh 100 was 0.182608962059 seconds..
   testing subcommit at theshhold of 500
   total time with subcommit thresh 500 was 0.163025021553 seconds..
   testing subcommit at theshhold of 1000
   total time with subcommit thresh 1000 was 0.229267001152 seconds..
   testing subcommit at theshhold of 10000
   total time with subcommit thresh 10000 was 0.162956953049 seconds..
ok
------------------------------------------------------------------------------
Ran 3 tests in 51.696s

FAILED (failures=1)


Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.