[Zope3-dev] unit- and functional-test failures in trunk
Igor Stroh
igor at rulim.de
Tue Oct 11 15:50:03 EDT 2005
Hi,
the current trunk produces two unit-test and one functional-test failures
when running `make test`[0].
python: 2.4.2
gcc: 4.0.1
[0] Tracebacks:
Failure in test /usr/src/zope3-svn/src/zope/testing/testrunner-coverage.txt
Traceback (most recent call last):
File "/usr/lib/python2.4/unittest.py", line 260, in run
testMethod()
File "/usr/src/zope3-3.0.93/zope3-svn/src/zope/testing/doctest.py", line
2196, in runTest
>>> raise exc_info[0], exc_info[1], exc_info[2]
DocTestFailureException: Failed doctest test for testrunner-coverage.txt
File "/usr/src/zope3-svn/src/zope/testing/testrunner-coverage.txt", line 0
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-coverage.txt", line
20, in testrunner-coverage.txt
Failed example:
testrunner.run(defaults)
Expected:
Running unit tests:
...
lines cov% module (path)
... testrunner.py)
...
Got:
Running unit tests:
Ran 192 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer1 tests:
Set up samplelayers.Layer1 in N.NNN seconds.
Ran 9 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer11 tests:
Set up samplelayers.Layer11 in N.NNN seconds.
Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer111 tests:
Set up samplelayers.Layerx in N.NNN seconds.
Set up samplelayers.Layer111 in N.NNN seconds.
Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer112 tests:
Tear down samplelayers.Layer111 in N.NNN seconds.
Set up samplelayers.Layer112 in N.NNN seconds.
Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer12 tests:
Tear down samplelayers.Layer112 in N.NNN seconds.
Tear down samplelayers.Layerx in N.NNN seconds.
Tear down samplelayers.Layer11 in N.NNN seconds.
Set up samplelayers.Layer12 in N.NNN seconds.
Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer121 tests:
Set up samplelayers.Layer121 in N.NNN seconds.
Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer122 tests:
Tear down samplelayers.Layer121 in N.NNN seconds.
Set up samplelayers.Layer122 in N.NNN seconds.
Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Tearing down left over layers:
Tear down samplelayers.Layer122 in N.NNN seconds.
Tear down samplelayers.Layer12 in N.NNN seconds.
Tear down samplelayers.Layer1 in N.NNN seconds.
Total: 405 tests, 0 failures, 0 errors
False
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-coverage.txt", line
30, in testrunner-coverage.txt
Failed example:
os.path.exists('coverage_dir')
Expected:
True
Got:
False
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-coverage.txt", line
32, in testrunner-coverage.txt
Failed example:
os.listdir('coverage_dir')
Exception raised:
Traceback (most recent call last):
File "/usr/src/zope3-3.0.93/zope3-svn/src/zope/testing/doctest.py",
line 1256, in __run
# If the example executed without raising any exceptions,
File "<doctest testrunner-coverage.txt[7]>", line 1, in ?
OSError: [Errno 2] No such file or directory: 'coverage_dir'
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-coverage.txt", line
38, in testrunner-coverage.txt
Failed example:
shutil.rmtree('coverage_dir')
Exception raised:
Traceback (most recent call last):
File "/usr/src/zope3-3.0.93/zope3-svn/src/zope/testing/doctest.py",
line 1256, in __run
# If the example executed without raising any exceptions,
File "<doctest testrunner-coverage.txt[9]>", line 1, in ?
File "/usr/lib/python2.4/shutil.py", line 155, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "/usr/lib/python2.4/shutil.py", line 153, in rmtree
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: 'coverage_dir'
.
Failure in test /usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt
Traceback (most recent call last):
File "/usr/lib/python2.4/unittest.py", line 260, in run
testMethod()
File "/usr/src/zope3-3.0.93/zope3-svn/src/zope/testing/doctest.py", line
2196, in runTest
>>> raise exc_info[0], exc_info[1], exc_info[2]
DocTestFailureException: Failed doctest test for testrunner-edge-cases.txt
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line 0
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
83, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
Expected:
Running unit tests:
--Return--
> ...->None
-> pdb.Pdb.set_trace(self)
(Pdb) n
> testrunner-ex/sample3/sampletests_d.py(NNN)f()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
Got:
Running unit tests:
--Return--
> ...->None
-> try:
(Pdb) n
> testrunner-ex/sample3/sampletests_d.py(NNN)f()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
103, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
Expected:
Running unit tests:
--Return--
> ...->None
-> pdb.Pdb.set_trace(self)
(Pdb) n
> <doctest sample3.sampletests_d.set_trace3[1]>(3)?()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
Got:
Running unit tests:
--Return--
> ...->None
-> try:
(Pdb) n
> <doctest sample3.sampletests_d.set_trace3[1]>(3)?()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
124, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
Expected:
Running unit tests:
--Return--
> ...->None
-> pdb.Pdb.set_trace(self)
(Pdb) n
> <doctest set_trace5.txt[1]>(3)?()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
Got:
Running unit tests:
--Return--
> ...->None
-> try:
(Pdb) n
> <doctest set_trace5.txt[1]>(3)?()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
146, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
Expected:
Running unit tests:
--Return--
> ...->None
-> pdb.Pdb.set_trace(self)
(Pdb) n
> testrunner-ex/sample3/sampletests_d.py(NNN)f()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
Got:
Running unit tests:
--Return--
> ...->None
-> try:
(Pdb) n
> testrunner-ex/sample3/sampletests_d.py(NNN)f()
-> y = x
(Pdb) p x
1
(Pdb) c
Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
False
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
196, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
# doctest: +NORMALIZE_WHITESPACE
Expected:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error in test post_mortem3 (sample3.sampletests_d)
Traceback (most recent call last):
UnexpectedException:
testrunner-ex/sample3/sampletests_d.py:NNN (2 examples)>
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> <doctest sample3.sampletests_d.post_mortem3[1]>(1)?()
(Pdb) p x
1
(Pdb) c
True
Got:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error in test post_mortem3 (sample3.sampletests_d)
Traceback (most recent call last):
######################################################################
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> <doctest sample3.sampletests_d.post_mortem3[1]>(1)?()
(Pdb) p x
1
(Pdb) c
True
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
230, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
# doctest: +NORMALIZE_WHITESPACE
Expected:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error in test post_mortem4 (sample3.sampletests_d)
Traceback (most recent call last):
UnexpectedException: testrunner-ex/sample3/sampletests_d.py:NNN (1
example)>
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> testrunner-ex/sample3/sampletests_d.py(NNN)g()
-> raise ValueError
(Pdb) p x
1
(Pdb) c
True
Got:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error in test post_mortem4 (sample3.sampletests_d)
Traceback (most recent call last):
######################################################################
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> testrunner-ex/sample3/sampletests_d.py(NNN)g()
-> raise ValueError
(Pdb) p x
1
(Pdb) c
True
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
264, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
# doctest: +NORMALIZE_WHITESPACE
Expected:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error testrunner-ex/sample3/post_mortem5.txt
Traceback (most recent call last):
UnexpectedException: testrunner-ex/sample3/post_mortem5.txt:0 (2
examples)>
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> <doctest post_mortem5.txt[1]>(1)?()
(Pdb) p x
1
(Pdb) c
True
Got:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error testrunner-ex/sample3/post_mortem5.txt
Traceback (most recent call last):
######################################################################
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> <doctest post_mortem5.txt[1]>(1)?()
(Pdb) p x
1
(Pdb) c
True
----------------------------------------------------------------------
File "/usr/src/zope3-svn/src/zope/testing/testrunner-edge-cases.txt", line
298, in testrunner-edge-cases.txt
Failed example:
try: testrunner.run(defaults)
finally: sys.stdin = real_stdin
# doctest: +NORMALIZE_WHITESPACE
Expected:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error testrunner-ex/sample3/post_mortem6.txt
Traceback (most recent call last):
UnexpectedException: testrunner-ex/sample3/post_mortem6.txt:0 (2
examples)>
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> testrunner-ex/sample3/sampletests_d.py(NNN)g()
-> raise ValueError
(Pdb) p x
1
(Pdb) c
True
Got:
Running unit tests:
<BLANKLINE>
<BLANKLINE>
Error testrunner-ex/sample3/post_mortem6.txt
Traceback (most recent call last):
######################################################################
<BLANKLINE>
exceptions.ValueError:
<BLANKLINE>
> testrunner-ex/sample3/sampletests_d.py(NNN)g()
-> raise ValueError
(Pdb) p x
1
(Pdb) c
True
...........................................................................----------------------------------------------------------------------
Ran 8270 tests in 372.253s
FAILED (failures=2)
Running FUNCTIONAL tests at level 1
Running FUNCTIONAL tests from /usr/src/zope3-svn
Parsing ftesting.zcml
.........../usr/src/zope3-svn/src/twisted/conch/ssh/common.py:20:
RuntimeWarning: PyCrypto not installed, but continuing anyways!
RuntimeWarning)
/usr/src/zope3-svn/src/zope/app/apidoc/classregistry.py:60:
DeprecationWarning: The zope.i18n.messageid module as a
backwards-compatible import location for i18n message ids has been
deprecated and will be removed from Zope 3.3. Please use Message and
MessageFactory from the zope.i18nmessageid package instead.
module = __import__(path, {}, {}, ('*',))
.......................................................
Failure in test testNotFound (zope.app.debugskin.ftests.DebugSkinTests)
Traceback (most recent call last):
File "/usr/lib/python2.4/unittest.py", line 260, in run
testMethod()
File "/usr/src/zope3-svn/src/zope/app/debugskin/ftests.py", line 30, in
testNotFound
self.assert_(body.find(
File "/usr/lib/python2.4/unittest.py", line 309, in failUnless
if not expr: raise self.failureException, msg
AssertionError
.....................................................................................................................................................----------------------------------------------------------------------
Ran 462 tests in 187.816s
FAILED (failures=1)
make: *** [test_inplace] Error 1
More information about the Zope3-dev
mailing list