[Zope3-dev] Test Failures when running tests with "-N 2"

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Apr 9 14:08:32 EDT 2005


Hi,

I have removed all unit test failures when running the test runner with "-N 
2", except for one failure in the ZODB tests, since I know nothing about this 
code. The failure is pasted below:

[srichter at einstein Zope3-Fresh]$ Python test.py -vpu1 -N 2
Configuration file found.
Running UNIT tests at level 1
Running UNIT tests from /opt/zope/Zope3/Zope3-Fresh

Run 1:
7299/7299 (100.0%): test_wikipath 
(zwiki.tests.test_wikipagehierarchy.Test)----------------------------------------------------------------------
Ran 7299 tests in 384.119s

OK

Run 2:
1126/7305 ( 15.4%): unittest.FunctionTestCase (runit)

Error in test unittest.FunctionTestCase (runit)
Traceback (most recent call last):
  File "/opt/python2.3/lib/python2.3/unittest.py", line 423, in runTest
    self.__testFunc()
  File "/opt/python2.3/lib/python2.3/doctest.py", line 1359, in runit
    _utest(tester, name, doc, filename, lineno)
  File "/opt/python2.3/lib/python2.3/doctest.py", line 1309, in _utest
    raise DocTestTestFailure('Failed doctest test for %s\n'
DocTestTestFailure: Failed doctest test for 
ZODB.tests.testConnection.UserMethodTests.test_cache
  File "/opt/zope/Zope3/Zope3-Fresh/src/ZODB/tests/testConnection.py", line 
386, in test_cache

*****************************************************************
Failure in example: len(hook.warnings)
from line #49 of ZODB.tests.testConnection.UserMethodTests.test_cache
Expected: 2
Got: 1
*****************************************************************
Failure in example: message, category, filename, lineno = hook.warnings[1]
from line #57 of ZODB.tests.testConnection.UserMethodTests.test_cache
Exception raised:
Traceback (most recent call last):
  File "/opt/python2.3/lib/python2.3/doctest.py", line 442, in 
_run_examples_inner
    compileflags, 1) in globs
  File "<string>", line 1, in ?
IndexError: list index out of range
*****************************************************************
Failure in example: message
from line #58 of ZODB.tests.testConnection.UserMethodTests.test_cache
Expected: 'No argument expected'
Got:
'This will be removed in ZODB 3.6:\ncacheFullSweep is deprecated. Use 
cacheMinimize instead.'


7305/7305 (100.0%): test_wikipath 
(zwiki.tests.test_wikipagehierarchy.Test)----------------------------------------------------------------------
Ran 7305 tests in 428.103s

FAILED (errors=1)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list