Re: [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,
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: > 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: > > 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(9) 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 signature.asc Description: Digital signature ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [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 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: 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: Any idea why this is happens? Regards, Baiju M ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [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,
On Fri, Jan 12, 2007 at 08:07:22AM +0530, Baiju M wrote: > Marius Gedminas wrote: > > Log message for revision 71953: Implement a --list-modules option > > that lists all modules matching your pattern, but does not actually > > run any tests. > > > > I hope this will help me figure out why test.py -s zope.testing in a > > Zope 3 checkout runs 0 tests. > > If I comment 'zope[.]testing' line in test.py, I can run 'test.py -s > zope.testing'. Yes, I discovered the -m !^(...|zope.testing|...) in Zope 3's top-level test.py as well. At first I thought it was a sinister bug in zope.testing. > 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. Marius Gedminas -- Where do you think you're going today? signature.asc Description: Digital signature ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com