[Zope-dev] zope.testrunner test failures on windows

Chris Withers chris at simplistix.co.uk
Tue Aug 12 16:17:39 EDT 2008


Hi All,

I could have sworn I reported this before but couldn't find anything in 
the archives so apologies if I have posted this before...

Anyway, running zope.testrunner's trunk's tests on windows seems to have 
some problems. These don't occur when running them on Linux.

cheers,

Chris

The output:


 > bin\test.exe
Running zope.testing.testrunner.layer.UnitTests tests:
   Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.


Failure in test zope.testing\src\zope\testing\testrunner\testrunner-
debugging-layer-setup.test
Failed doctest test for testrunner-debugging-layer-setup.test
   File "zope.testing\src\zope\testing\testrunner\testrunner-debuggin
g-layer-setup.test", line 0

----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-debugging-
layer-setup.test", line 45, in testrunner-debugging-layer-setup.test
Failed example:
     try:
         zope.testing.testrunner.run(['--path', dir, '-D'])
     finally: sys.stdin = real_stdin
     # doctest: +ELLIPSIS
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-debugging-layer-setup.test[10]>", line 
2, in ?
       File "zope.testing\src\zope\testing\testrunner\__init__.py", l
ine 33, in run
         runner.run()
       File "zope.testing\src\zope\testing\testrunner\runner.py", lin
e 129, in run
         feature.global_setup()
       File "zope.testing\src\zope\testing\testrunner\find.py", line
343, in global_setup
         tests = find_tests(self.runner.options, self.runner.found_suites)
       File "zope.testing\src\zope\testing\testrunner\find.py", line
53, in find_tests
         for suite in found_suites:
       File "zope.testing\src\zope\testing\testrunner\find.py", line
103, in find_suites
         suite = StartUpFailure(
       File "zope.testing\src\zope\testing\testrunner\find.py", line
36, in __init__
         post_mortem(exc_info)
       File "zope.testing\src\zope\testing\testrunner\runner.py", lin
e 717, in post_mortem
         pdb.post_mortem(exc_info[2])
       File "Python24\lib\pdb.py", line 1016, in post_mortem
         while t.tb_next is not None:
     AttributeError: 'NoneType' object has no attribute 'tb_next'

A message on stderr.  Please ignore (expected in test output).


Failure in test zope.testing\src\zope\testing\testrunner\testrunner-
coverage-win32.txt
Failed doctest test for testrunner-coverage-win32.txt
   File "zope.testing\src\zope\testing\testrunner\testrunner-coverage
-win32.txt", line 0

----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 14, in testrunner-coverage-win32.txt
Failed example:
     ignore = testrunner.TestIgnore(WinOptions())
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[2]>", line 1, in ?
     AttributeError: 'module' object has no attribute 'TestIgnore'
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 15, in testrunner-coverage-win32.txt
Failed example:
     ignore._test_dirs
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[3]>", line 1, in ?
     NameError: name 'ignore' is not defined
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 20, in testrunner-coverage-win32.txt
Failed example:
     ignore.names('r:\\winproject\\src\\blah\\foo\\baz.py', 'baz')
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[4]>", line 1, in ?
     NameError: name 'ignore' is not defined
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 22, in testrunner-coverage-win32.txt
Failed example:
     ignore.names('R:\\winproject\\src\\blah\\foo\\baz.py', 'baz')
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[5]>", line 1, in ?
     NameError: name 'ignore' is not defined
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 24, in testrunner-coverage-win32.txt
Failed example:
     ignore.names('r:\\winproject\\src\\blah\\bar\\zab.py', 'zab')
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[6]>", line 1, in ?
     NameError: name 'ignore' is not defined
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 26, in testrunner-coverage-win32.txt
Failed example:
     ignore.names('R:\\winproject\\src\\blah\\bar\\zab.py', 'zab')
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[7]>", line 1, in ?
     NameError: name 'ignore' is not defined
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 28, in testrunner-coverage-win32.txt
Failed example:
     ignore.names('r:\\winproject\\src\\blah\\hello.py', 'hello')
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[8]>", line 1, in ?
     NameError: name 'ignore' is not defined
----------------------------------------------------------------------
File "zope.testing\src\zope\testing\testrunner\testrunner-coverage-w
in32.txt", line 30, in testrunner-coverage-win32.txt
Failed example:
     ignore.names('R:\\winproject\\src\\blah\\hello.py', 'hello')
Exception raised:
     Traceback (most recent call last):
       File "zope.testing\src\zope\testing\doctest.py", line 1356, in
  __run
         compileflags, 1) in test.globs
       File "<doctest testrunner-coverage-win32.txt[9]>", line 1, in ?
     NameError: name 'ignore' is not defined

   Ran 183 tests with 2 failures and 0 errors in 43.094 seconds.
Tearing down left over layers:
   Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list