[Zope-tests] FAILED (failures=3, errors=4) : Zope-trunk Python-2.4.4 : Linux

Zope Tests zope-tests at epy.co.at
Sun Oct 26 22:03:25 EDT 2008


Zope Tests : FAILED (failures=3, errors=4)
Zope-trunk Python-2.4.4 : Linux

Running /usr/local/python2.4/bin/python test.py -q --all
Running unit tests:
/home/stefan/autotest/temp/python24-zope212/lib/python/DocumentTemplate/DT_Raise.py:61: DeprecationWarning: String exceptions are deprecated starting with Python 2.5 and will be removed in a future release
  t, v = upgradeException(t, v)


Error in test test_max_succeeds (AccessControl.tests.testZopeGuards.TestBuiltinFunctionGuards)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/testZopeGuards.py", line 346, in test_max_succeeds
    key=operator.itemgetter('x')), {'x':2})
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/ZopeGuards.py", line 244, in guarded_max
    return max(guarded_iter(item), **kw)
TypeError: max() takes no keyword arguments



Error in test test_min_succeeds (AccessControl.tests.testZopeGuards.TestBuiltinFunctionGuards)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/testZopeGuards.py", line 337, in test_min_succeeds
    key=operator.itemgetter('x')), {'x':1})
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/ZopeGuards.py", line 251, in guarded_min
    return min(guarded_iter(item), **kw)
TypeError: min() takes no keyword arguments



Error in test testPython (AccessControl.tests.testZopeGuards.TestActualPython)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/testZopeGuards.py", line 553, in testPython
    exec code in its_globals
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/actual_python.py", line 169, in <module>
    f12()
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/actual_python.py", line 167, in f12
    assert all([True, True, True]) == True
NameError: global name 'all' is not defined



Error in test testPythonRealAC (AccessControl.tests.testZopeGuards.TestActualPython)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/testZopeGuards.py", line 699, in testPythonRealAC
    exec code in its_globals
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/actual_python.py", line 169, in <module>
    f12()
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/AccessControl/tests/actual_python.py", line 167, in f12
    assert all([True, True, True]) == True
NameError: global name 'all' is not defined

The following test left new threads behind:
testABOR (zope.server.ftp.tests.test_ftpserver.Tests)
New thread(s): [<_DummyThread(Dummy-38, started daemon)>]
  Ran 5673 tests with 0 failures and 4 errors in 3 minutes 6.565 seconds.
Running OFS.tests.testCopySupportEvents.EventLayer tests:
  Set up OFS.tests.testCopySupportEvents.EventLayer in 0.569 seconds.
  Ran 14 tests with 0 failures and 0 errors in 0.163 seconds.
Running Testing.ZopeTestCase.layer.ZopeLite tests:
  Tear down OFS.tests.testCopySupportEvents.EventLayer in 0.006 seconds.
  Set up Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds.


Failure in test /home/stefan/autotest/temp/python24-zope212/lib/python/Products/Five/browser/tests/resource_ftest.txt
Failed doctest test for resource_ftest.txt
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/Products/Five/browser/tests/resource_ftest.txt", line 0

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/Products/Five/browser/tests/resource_ftest.txt", line 38, in resource_ftest.txt
Failed example:
    print http(r'''
    GET /test_folder_1_/testoid/++resource++pattern.png/more HTTP/1.1
    Authorization: Basic manager:r00t
    ''')
Differences (ndiff with -expected +actual):
    - HTTP/1.1 404 Not Found
    - ...
    + HTTP/1.1 500 Internal Server Error
    + Content-Length: 1216
    + Content-Type: text/html; charset=iso-8859-15
    + <BLANKLINE>
    +   <h2>Site Error</h2>
    +   <p>An error was encountered while publishing this resource.
    +   </p>
    +   <p><strong>exceptions.TypeError</strong></p>
    + <BLANKLINE>
    +   Sorry, a site error occurred.<p><p>Traceback (innermost last):
    + <ul>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Test, line 199, in publish_module</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Publish, line 150, in publish</li>
    + <BLANKLINE>
    + <li>  Module Zope2.App.startup, line 261, in __call__</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Publish, line 110, in publish</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.BaseRequest, line 492, in traverse</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.BaseRequest, line 328, in traverseName</li>
    + <BLANKLINE>
    + <li>  Module zope.app.publisher.browser.fileresource, line 37, in publishTraverse</li>
    + <BLANKLINE>
    + </ul>TypeError: __init__() takes at least 3 arguments (2 given)
    + </p></p>
    +   <hr noshade="noshade"/>
    + <BLANKLINE>
    +   <p>Troubleshooting Suggestions</p>
    + <BLANKLINE>
    +   <ul>
    +   <li>The URL may be incorrect.</li>
    +   <li>The parameters passed to this resource may be incorrect.</li>
    +   <li>A resource that this resource relies on may be
    +       encountering an error.</li>
    +   </ul>
    + <BLANKLINE>
    +   <p>For more detailed information about the error, please
    +   refer to the error log.
    +   </p>
    + <BLANKLINE>
    +   <p>If the error persists please contact the site maintainer.
    +   Thank you for your patience.
    +   </p>
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/Products/Five/browser/tests/resource_ftest.txt", line 57, in resource_ftest.txt
Failed example:
    print http(r'''
    GET /test_folder_1_/testoid/++resource++style.css/more HTTP/1.1
    Authorization: Basic manager:r00t
    ''')
Differences (ndiff with -expected +actual):
    - HTTP/1.1 404 Not Found
    - ...
    + HTTP/1.1 500 Internal Server Error
    + Content-Length: 1216
    + Content-Type: text/html; charset=iso-8859-15
    + <BLANKLINE>
    +   <h2>Site Error</h2>
    +   <p>An error was encountered while publishing this resource.
    +   </p>
    +   <p><strong>exceptions.TypeError</strong></p>
    + <BLANKLINE>
    +   Sorry, a site error occurred.<p><p>Traceback (innermost last):
    + <ul>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Test, line 199, in publish_module</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Publish, line 150, in publish</li>
    + <BLANKLINE>
    + <li>  Module Zope2.App.startup, line 261, in __call__</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Publish, line 110, in publish</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.BaseRequest, line 492, in traverse</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.BaseRequest, line 328, in traverseName</li>
    + <BLANKLINE>
    + <li>  Module zope.app.publisher.browser.fileresource, line 37, in publishTraverse</li>
    + <BLANKLINE>
    + </ul>TypeError: __init__() takes at least 3 arguments (2 given)
    + </p></p>
    +   <hr noshade="noshade"/>
    + <BLANKLINE>
    +   <p>Troubleshooting Suggestions</p>
    + <BLANKLINE>
    +   <ul>
    +   <li>The URL may be incorrect.</li>
    +   <li>The parameters passed to this resource may be incorrect.</li>
    +   <li>A resource that this resource relies on may be
    +       encountering an error.</li>
    +   </ul>
    + <BLANKLINE>
    +   <p>For more detailed information about the error, please
    +   refer to the error log.
    +   </p>
    + <BLANKLINE>
    +   <p>If the error persists please contact the site maintainer.
    +   Thank you for your patience.
    +   </p>
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/Products/Five/browser/tests/resource_ftest.txt", line 76, in resource_ftest.txt
Failed example:
    print http(r'''
    GET /test_folder_1_/testoid/++resource++cockatiel.html/more HTTP/1.1
    Authorization: Basic manager:r00t
    ''')
Differences (ndiff with -expected +actual):
    - HTTP/1.1 404 Not Found
    - ...
    + HTTP/1.1 500 Internal Server Error
    + Content-Length: 1207
    + Content-Type: text/html; charset=iso-8859-15
    + <BLANKLINE>
    +   <h2>Site Error</h2>
    +   <p>An error was encountered while publishing this resource.
    +   </p>
    +   <p><strong>exceptions.TypeError</strong></p>
    + <BLANKLINE>
    +   Sorry, a site error occurred.<p><p>Traceback (innermost last):
    + <ul>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Test, line 199, in publish_module</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Publish, line 150, in publish</li>
    + <BLANKLINE>
    + <li>  Module Zope2.App.startup, line 261, in __call__</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.Publish, line 110, in publish</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.BaseRequest, line 492, in traverse</li>
    + <BLANKLINE>
    + <li>  Module ZPublisher.BaseRequest, line 328, in traverseName</li>
    + <BLANKLINE>
    + <li>  Module Products.Five.browser.resource, line 63, in publishTraverse</li>
    + <BLANKLINE>
    + </ul>TypeError: __init__() takes at least 3 arguments (2 given)
    + </p></p>
    +   <hr noshade="noshade"/>
    + <BLANKLINE>
    +   <p>Troubleshooting Suggestions</p>
    + <BLANKLINE>
    +   <ul>
    +   <li>The URL may be incorrect.</li>
    +   <li>The parameters passed to this resource may be incorrect.</li>
    +   <li>A resource that this resource relies on may be
    +       encountering an error.</li>
    +   </ul>
    + <BLANKLINE>
    +   <p>For more detailed information about the error, please
    +   refer to the error log.
    +   </p>
    + <BLANKLINE>
    +   <p>If the error persists please contact the site maintainer.
    +   Thank you for your patience.
    +   </p>

  Ran 626 tests with 1 failures and 0 errors in 24.424 seconds.
Running Testing.ZopeTestCase.testZODBCompat.ZODBCompatLayer tests:
  Set up Testing.ZopeTestCase.testZODBCompat.ZODBCompatLayer in 0.005 seconds.
  Ran 18 tests with 0 failures and 0 errors in 0.122 seconds.
Running Testing.ZopeTestCase.zopedoctest.testLayerExtraction.TestLayer tests:
  Tear down Testing.ZopeTestCase.testZODBCompat.ZODBCompatLayer in 0.004 seconds.
  Set up Testing.ZopeTestCase.zopedoctest.testLayerExtraction.TestLayer in 0.003 seconds.
  Ran 2 tests with 0 failures and 0 errors in 0.021 seconds.
Running zope.formlib.tests.FormlibLayer tests:
  Tear down Testing.ZopeTestCase.zopedoctest.testLayerExtraction.TestLayer in 0.003 seconds.
  Tear down Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds.
  Set up zope.formlib.tests.FormlibLayer in 1.376 seconds.
  Ran 5 tests with 0 failures and 0 errors in 0.015 seconds.
Running zope.testbrowser.tests.TestBrowserLayer tests:
  Tear down zope.formlib.tests.FormlibLayer in 0.008 seconds.
  Set up zope.testbrowser.tests.TestBrowserLayer in 1.355 seconds.


Failure in test /home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/README.txt
Failed doctest test for README.txt
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/README.txt", line 0

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/README.txt", line 1162, in README.txt
Failed example:
    print browser.contents,
Expected:
    CONTENT_LENGTH: 13
    HTTP_USER_AGENT: Python-urllib/2.4
    HTTP_CONNECTION: close
    HTTP_COOKIE:
    HTTP_REFERER: localhost
    HTTP_ACCEPT_LANGUAGE: en-US
    REQUEST_METHOD: POST
    HTTP_HOST: localhost
    PATH_INFO: /@@echo.html
    CONTENT_TYPE: application/x-javascipt
    SERVER_PROTOCOL: HTTP/1.1
    Body: '{"x":1,"y":2}'
Got:
    CONTENT_LENGTH: 13
    HTTP_USER_AGENT: Python-urllib/2.4
    HTTP_CONNECTION: close
    HTTP_COOKIE: 
    HTTP_REFERER: localhost
    HTTP_ACCEPT_LANGUAGE: en-US
    REQUEST_METHOD: POST
    HTTP_HOST: localhost
    PATH_INFO: /@@echo.html
    CONTENT_TYPE: application/x-javascipt
    SERVER_PROTOCOL: HTTP/1.1
    QUERY_STRING: 
    Body: ''



Failure in test /home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/fixed-bugs.txt
Failed doctest test for fixed-bugs.txt
  File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/fixed-bugs.txt", line 0

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/fixed-bugs.txt", line 87, in fixed-bugs.txt
Failed example:
    browser.open('http://localhost/@@/testbrowser/fragment.html#asdf')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest fixed-bugs.txt[22]>", line 1, in ?
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/browser.py", line 231, in open
        self.mech_browser.open(url, data)
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/mechanize/_mechanize.py", line 177, in open
        return self._mech_open(url, data)
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/mechanize/_mechanize.py", line 219, in _mech_open
        raise error
    HTTPError: HTTP Error 404: Not Found
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/fixed-bugs.txt", line 90, in fixed-bugs.txt
Failed example:
    browser.getLink('Follow me')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest fixed-bugs.txt[24]>", line 1, in ?
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/browser.py", line 313, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/mechanize/_mechanize.py", line 499, in find_link
        raise LinkNotFoundError()
    LinkNotFoundError
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/fixed-bugs.txt", line 92, in fixed-bugs.txt
Failed example:
    browser.getLink('Follow me').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest fixed-bugs.txt[25]>", line 1, in ?
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/zope/testbrowser/browser.py", line 313, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File "/home/stefan/autotest/temp/python24-zope212/lib/python/mechanize/_mechanize.py", line 499, in find_link
        raise LinkNotFoundError()
    LinkNotFoundError

  Ran 114 tests with 2 failures and 0 errors in 3.041 seconds.
Running zope.traversing.tests.layer.TraversingLayer tests:
  Tear down zope.testbrowser.tests.TestBrowserLayer in 0.008 seconds.
  Set up zope.traversing.tests.layer.TraversingLayer/home/stefan/autotest/temp/python24-zope212/lib/python/zope/configuration/config.py:197: DeprecationWarning: ZopeSecurityPolicy is deprecated. It has moved to zope.securitypolicy.zopepolicy  This reference will be removed somedays
  obj = getattr(mod, oname)
 in 1.232 seconds.
  Ran 7 tests with 0 failures and 0 errors in 0.468 seconds.
Tearing down left over layers:
  Tear down zope.traversing.tests.layer.TraversingLayer in 0.008 seconds.
Total: 6459 tests, 3 failures, 4 errors in 3 minutes 49.652 seconds.

FAILED (failures=3, errors=4)


More information about the Zope-tests mailing list