[Zope3-dev] Re: [Zope3-checkins] SVN: zope.testing/branches/mgedmin-fixes/src/zope/testing/testrunner Implement a --list-modules option that lists all modules matching your pattern,

Marius Gedminas mgedmin at b4net.lt
Fri Jan 12 18:47:41 EST 2007


On Fri, Jan 12, 2007 at 05:51:58PM +0530, Baiju M wrote:
> Marius Gedminas wrote:
> [snip]
> >> And all tests are passed with message "Ran 123 tests with 0
> >> failures and 0 errors in 18.783 seconds."
> >
> >
> > Which Python version do you have? I get 4 failures with Python
> > 2.4.4c1 (Ubuntu Edgy) with the zope.testing trunk. These are now
> > fixed on the mgedmin-fixes branch.
> 
> I am using a manually installed 2.4.4 final release. All tests pass, but
> some other error is coming, here is the output:
> 
> Running unit tests:
>  Ran 123 tests with 0 failures and 0 errors in 54.110 seconds.
> Error in atexit._run_exitfuncs:
> Traceback (most recent call last):
>  File "/var/tmp/zopy/usr//lib/python2.4/atexit.py", line 24, in 
> _run_exitfuncs
>    func(*targs, **kargs)
>  File "/var/tmp/zopy/usr//lib/python2.4/logging/__init__.py", line 
> 1333, in shutdown
>    h.close()
>  File "/var/tmp/zopy/usr//lib/python2.4/logging/__init__.py", line 772, 
> in close
>    StreamHandler.close(self)
>  File "/var/tmp/zopy/usr//lib/python2.4/logging/__init__.py", line 674, 
> in close
>    del _handlers[self]
> KeyError: <logging.FileHandler instance at 0xb7a1dc8c>
> Error in sys.exitfunc:
> Traceback (most recent call last):
>  File "/var/tmp/zopy/usr//lib/python2.4/atexit.py", line 24, in 
> _run_exitfuncs
>    func(*targs, **kargs)
>  File "/var/tmp/zopy/usr//lib/python2.4/logging/__init__.py", line 
> 1333, in shutdown
>    h.close()
>  File "/var/tmp/zopy/usr//lib/python2.4/logging/__init__.py", line 772, 
> in close
>    StreamHandler.close(self)
>  File "/var/tmp/zopy/usr//lib/python2.4/logging/__init__.py", line 674, 
> in close
>    del _handlers[self]
> KeyError: <logging.FileHandler instance at 0xb7a1dc8c>
> 
> Any idea why this is happens?

Not really, but I see this in Zope3's test.py:

    # Avoid spurious error during exit. Some thing is trying to log
    # something after the files used by the logger have been closed.
    logging.disable(999999999)

The test.py script in the zope.testing package root does not have this
line.  No idea whether this is related to the error message you see.
I do not see these KeyErrors here.

Marius Gedminas
-- 
As of 2.91, these bugs have all been fixed.  We look forward to new ones, well,
not exactly...
                -- libstdc++-v3 FAQ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070113/fe658aaf/attachment.bin


More information about the Zope3-dev mailing list