[Zope-tests] FAILED (failures=3): Test Zope3 HEAD / Python 2.3 /
Linux
jeremy at zope.com
jeremy at zope.com
Mon Mar 29 07:25:18 EST 2004
Email automatically generated by a daily test runner.
cd /tmp/autotestbAK18i/Zope3
PYTHONPATH= /usr/local/bin/python2.3 -u test.py -v --all
Running unit tests at all levels
Running unit tests from /tmp/autotestbAK18i/Zope3
not a package src/zope/app/browser/skins/rotterdam/tests
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Failure in test findClasses (zope.app.apidoc.classmodule.browser.Menu)
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctestunit.py", line 72, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.app.apidoc.classmodule.browser.Menu.findClasses
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 41, in findClasses
Running string zope.app.apidoc.classmodule.browser.Menu.findClasses
Trying: import pprint
Expecting: nothing
ok
Trying: from zope.app.apidoc.classmodule import Class
Expecting: nothing
ok
Trying: cm = zapi.getUtility(None, IDocumentationModule, 'Class')
Expecting: nothing
ok
Trying: mod = cm['zope']['app']['apidoc']['classmodule']['browser']
Expecting: nothing
ok
Trying:
class Foo(object):
pass
Expecting: nothing
ok
Trying: mod._Module__children['Foo'] = Class(mod, 'Foo', Foo)
Expecting: nothing
ok
Trying:
class Foo2(object):
pass
Expecting: nothing
ok
Trying: mod._Module__children['Foo2'] = Class(mod, 'Foo2', Foo2)
Expecting: nothing
ok
Trying:
class Blah(object):
pass
Expecting: nothing
ok
Trying: mod._Module__children['Blah'] = Class(mod, 'Blah', Blah)
Expecting: nothing
ok
Trying: from zope.publisher.browser import TestRequest
Expecting: nothing
ok
Trying: menu = Menu()
Expecting: nothing
ok
Trying: menu.context = None
Expecting: nothing
ok
Trying: menu.request = TestRequest(form={'path': 'Foo'})
Expecting: nothing
ok
Trying: info = menu.findClasses()
Expecting: nothing
*****************************************************************
Failure in example: info = menu.findClasses()
from line #30 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 100, in findClasses
klass = zapi.traverse(classModule, p.replace('.', '/'))
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/__init__.py", line 89, in traverse
return traverser.traverse(path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 123, in traverse
curr = traversePathElement(curr, name, path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 176, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 59, in traverse
return subject[name]
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/utilities.py", line 89, in __getitem__
raise KeyError, key
KeyError: 'Foo2'
Trying: info.sort()
Expecting: nothing
*****************************************************************
Failure in example: info.sort()
from line #31 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: pprint.pprint(info)
Expecting:
[{'path': 'zope.app.apidoc.classmodule.browser.Foo',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Foo'},
{'path': 'zope.app.apidoc.classmodule.browser.Foo2',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Foo2'}]
*****************************************************************
Failure in example: pprint.pprint(info)
from line #32 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: menu.request = TestRequest(form={'path': 'o2'})
Expecting: nothing
ok
Trying: info = menu.findClasses()
Expecting: nothing
*****************************************************************
Failure in example: info = menu.findClasses()
from line #39 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 100, in findClasses
klass = zapi.traverse(classModule, p.replace('.', '/'))
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/__init__.py", line 89, in traverse
return traverser.traverse(path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 123, in traverse
curr = traversePathElement(curr, name, path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 176, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 59, in traverse
return subject[name]
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/utilities.py", line 89, in __getitem__
raise KeyError, key
KeyError: 'Foo2'
Trying: info.sort()
Expecting: nothing
*****************************************************************
Failure in example: info.sort()
from line #40 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: pprint.pprint(info)
Expecting:
[{'path': 'zope.app.apidoc.classmodule.browser.Foo2',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Foo2'}]
*****************************************************************
Failure in example: pprint.pprint(info)
from line #41 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: menu.request = TestRequest(form={'path': 'Blah'})
Expecting: nothing
ok
Trying: info = menu.findClasses()
Expecting: nothing
*****************************************************************
Failure in example: info = menu.findClasses()
from line #46 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 100, in findClasses
klass = zapi.traverse(classModule, p.replace('.', '/'))
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/__init__.py", line 89, in traverse
return traverser.traverse(path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 123, in traverse
curr = traversePathElement(curr, name, path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 176, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 59, in traverse
return subject[name]
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/utilities.py", line 89, in __getitem__
raise KeyError, key
KeyError: 'Blah'
Trying: info.sort()
Expecting: nothing
*****************************************************************
Failure in example: info.sort()
from line #47 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: pprint.pprint(info)
Expecting:
[{'path': 'zope.app.apidoc.classmodule.browser.Blah',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Blah'}]
*****************************************************************
Failure in example: pprint.pprint(info)
from line #48 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
9 of 25 examples failed in string zope.app.apidoc.classmodule.browser.Menu.findClasses
.........
Failure in test Module (zope.app.apidoc.classmodule)
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctestunit.py", line 72, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.app.apidoc.classmodule.Module
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/__init__.py", line 153 (or above), in Module
Running string zope.app.apidoc.classmodule.Module
Trying: import zope.app.apidoc
Expecting: nothing
ok
Trying: module = Module(None, 'apidoc', zope.app.apidoc)
Expecting: nothing
ok
Trying: module.getDocString()[:24]
Expecting: 'Zope 3 API Documentation'
ok
Trying: module.getFileName()[-32:]
Expecting: 'src/zope/app/apidoc/__init__.pyc'
*****************************************************************
Failure in example: module.getFileName()[-32:]
from line #14 of zope.app.apidoc.classmodule.Module
Expected: 'src/zope/app/apidoc/__init__.pyc'
Got: '/src/zope/app/apidoc/__init__.py'
Trying: module.getPath()
Expecting: 'zope.app.apidoc'
ok
Trying: keys = module.keys()
Expecting: nothing
ok
Trying: keys.sort()
Expecting: nothing
ok
Trying: keys[:4]
Expecting: ['APIDocumentation', 'browser', 'classmodule', 'ifacemodule']
*****************************************************************
Failure in example: keys[:4]
from line #26 of zope.app.apidoc.classmodule.Module
Expected: ['APIDocumentation', 'browser', 'classmodule', 'ifacemodule']
Got: ['APIDocumentation']
Trying: print module['browser'].getPath()
Expecting: zope.app.apidoc.browser
ok
Trying: print module['tests'].getPath()
Expecting: zope.app.apidoc.tests
ok
Trying: module['tests'].keys()
Expecting: ['Root']
ok
2 of 11 examples failed in string zope.app.apidoc.classmodule.Module
Failure in test safe_import (zope.app.apidoc.classmodule)
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctestunit.py", line 72, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.app.apidoc.classmodule.safe_import
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/__init__.py", line 529, in safe_import
Running string zope.app.apidoc.classmodule.safe_import
Trying: 'zope.app' in sys.modules
Expecting: True
ok
Trying: safe_import('zope.app') is sys.modules['zope.app']
Expecting: True
ok
Trying: 'shelve' in sys.modules
Expecting: False
ok
Trying: safe_import('shelve').__name__
Expecting: 'shelve'
ok
Trying: safe_import('foo') is None
Expecting: True
*****************************************************************
Failure in example: safe_import('foo') is None
from line #18 of zope.app.apidoc.classmodule.safe_import
Expected: True
Got: False
1 of 5 examples failed in string zope.app.apidoc.classmodule.safe_import
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: findClasses (zope.app.apidoc.classmodule.browser.Menu)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctestunit.py", line 72, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.app.apidoc.classmodule.browser.Menu.findClasses
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 41, in findClasses
Running string zope.app.apidoc.classmodule.browser.Menu.findClasses
Trying: import pprint
Expecting: nothing
ok
Trying: from zope.app.apidoc.classmodule import Class
Expecting: nothing
ok
Trying: cm = zapi.getUtility(None, IDocumentationModule, 'Class')
Expecting: nothing
ok
Trying: mod = cm['zope']['app']['apidoc']['classmodule']['browser']
Expecting: nothing
ok
Trying:
class Foo(object):
pass
Expecting: nothing
ok
Trying: mod._Module__children['Foo'] = Class(mod, 'Foo', Foo)
Expecting: nothing
ok
Trying:
class Foo2(object):
pass
Expecting: nothing
ok
Trying: mod._Module__children['Foo2'] = Class(mod, 'Foo2', Foo2)
Expecting: nothing
ok
Trying:
class Blah(object):
pass
Expecting: nothing
ok
Trying: mod._Module__children['Blah'] = Class(mod, 'Blah', Blah)
Expecting: nothing
ok
Trying: from zope.publisher.browser import TestRequest
Expecting: nothing
ok
Trying: menu = Menu()
Expecting: nothing
ok
Trying: menu.context = None
Expecting: nothing
ok
Trying: menu.request = TestRequest(form={'path': 'Foo'})
Expecting: nothing
ok
Trying: info = menu.findClasses()
Expecting: nothing
*****************************************************************
Failure in example: info = menu.findClasses()
from line #30 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 100, in findClasses
klass = zapi.traverse(classModule, p.replace('.', '/'))
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/__init__.py", line 89, in traverse
return traverser.traverse(path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 123, in traverse
curr = traversePathElement(curr, name, path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 176, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 59, in traverse
return subject[name]
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/utilities.py", line 89, in __getitem__
raise KeyError, key
KeyError: 'Foo2'
Trying: info.sort()
Expecting: nothing
*****************************************************************
Failure in example: info.sort()
from line #31 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: pprint.pprint(info)
Expecting:
[{'path': 'zope.app.apidoc.classmodule.browser.Foo',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Foo'},
{'path': 'zope.app.apidoc.classmodule.browser.Foo2',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Foo2'}]
*****************************************************************
Failure in example: pprint.pprint(info)
from line #32 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: menu.request = TestRequest(form={'path': 'o2'})
Expecting: nothing
ok
Trying: info = menu.findClasses()
Expecting: nothing
*****************************************************************
Failure in example: info = menu.findClasses()
from line #39 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 100, in findClasses
klass = zapi.traverse(classModule, p.replace('.', '/'))
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/__init__.py", line 89, in traverse
return traverser.traverse(path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 123, in traverse
curr = traversePathElement(curr, name, path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 176, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 59, in traverse
return subject[name]
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/utilities.py", line 89, in __getitem__
raise KeyError, key
KeyError: 'Foo2'
Trying: info.sort()
Expecting: nothing
*****************************************************************
Failure in example: info.sort()
from line #40 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: pprint.pprint(info)
Expecting:
[{'path': 'zope.app.apidoc.classmodule.browser.Foo2',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Foo2'}]
*****************************************************************
Failure in example: pprint.pprint(info)
from line #41 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: menu.request = TestRequest(form={'path': 'Blah'})
Expecting: nothing
ok
Trying: info = menu.findClasses()
Expecting: nothing
*****************************************************************
Failure in example: info = menu.findClasses()
from line #46 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/browser.py", line 100, in findClasses
klass = zapi.traverse(classModule, p.replace('.', '/'))
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/__init__.py", line 89, in traverse
return traverser.traverse(path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 123, in traverse
curr = traversePathElement(curr, name, path, request=request)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 176, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
File "/tmp/autotestbAK18i/Zope3/src/zope/app/traversing/adapters.py", line 59, in traverse
return subject[name]
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/utilities.py", line 89, in __getitem__
raise KeyError, key
KeyError: 'Blah'
Trying: info.sort()
Expecting: nothing
*****************************************************************
Failure in example: info.sort()
from line #47 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
Trying: pprint.pprint(info)
Expecting:
[{'path': 'zope.app.apidoc.classmodule.browser.Blah',
'url': 'http://127.0.0.1/zope/app/apidoc/classmodule/browser/Blah'}]
*****************************************************************
Failure in example: pprint.pprint(info)
from line #48 of zope.app.apidoc.classmodule.browser.Menu.findClasses
Exception raised:
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctest.py", line 445, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
NameError: name 'info' is not defined
9 of 25 examples failed in string zope.app.apidoc.classmodule.browser.Menu.findClasses
======================================================================
FAIL: Module (zope.app.apidoc.classmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctestunit.py", line 72, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.app.apidoc.classmodule.Module
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/__init__.py", line 153 (or above), in Module
Running string zope.app.apidoc.classmodule.Module
Trying: import zope.app.apidoc
Expecting: nothing
ok
Trying: module = Module(None, 'apidoc', zope.app.apidoc)
Expecting: nothing
ok
Trying: module.getDocString()[:24]
Expecting: 'Zope 3 API Documentation'
ok
Trying: module.getFileName()[-32:]
Expecting: 'src/zope/app/apidoc/__init__.pyc'
*****************************************************************
Failure in example: module.getFileName()[-32:]
from line #14 of zope.app.apidoc.classmodule.Module
Expected: 'src/zope/app/apidoc/__init__.pyc'
Got: '/src/zope/app/apidoc/__init__.py'
Trying: module.getPath()
Expecting: 'zope.app.apidoc'
ok
Trying: keys = module.keys()
Expecting: nothing
ok
Trying: keys.sort()
Expecting: nothing
ok
Trying: keys[:4]
Expecting: ['APIDocumentation', 'browser', 'classmodule', 'ifacemodule']
*****************************************************************
Failure in example: keys[:4]
from line #26 of zope.app.apidoc.classmodule.Module
Expected: ['APIDocumentation', 'browser', 'classmodule', 'ifacemodule']
Got: ['APIDocumentation']
Trying: print module['browser'].getPath()
Expecting: zope.app.apidoc.browser
ok
Trying: print module['tests'].getPath()
Expecting: zope.app.apidoc.tests
ok
Trying: module['tests'].keys()
Expecting: ['Root']
ok
2 of 11 examples failed in string zope.app.apidoc.classmodule.Module
======================================================================
FAIL: safe_import (zope.app.apidoc.classmodule)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autotestbAK18i/Zope3/src/zope/testing/doctestunit.py", line 72, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.app.apidoc.classmodule.safe_import
File "/tmp/autotestbAK18i/Zope3/src/zope/app/apidoc/classmodule/__init__.py", line 529, in safe_import
Running string zope.app.apidoc.classmodule.safe_import
Trying: 'zope.app' in sys.modules
Expecting: True
ok
Trying: safe_import('zope.app') is sys.modules['zope.app']
Expecting: True
ok
Trying: 'shelve' in sys.modules
Expecting: False
ok
Trying: safe_import('shelve').__name__
Expecting: 'shelve'
ok
Trying: safe_import('foo') is None
Expecting: True
*****************************************************************
Failure in example: safe_import('foo') is None
from line #18 of zope.app.apidoc.classmodule.safe_import
Expected: True
Got: False
1 of 5 examples failed in string zope.app.apidoc.classmodule.safe_import
----------------------------------------------------------------------
Ran 4984 tests in 1251.004s
FAILED (failures=3)
More information about the Zope-tests
mailing list