[ZCM] [ZC] 1947/ 4 Resolve "Zope trunk test.py --all failures, in Five"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Dec 20 08:22:46 EST 2005


Issue #1947 Update (Resolve) "Zope trunk test.py --all failures, in Five"
 Status Resolved, Zope/test medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1947

==============================================================
= Resolve - Entry #4 by philikon on Dec 20, 2005 8:22 am

 Status: Pending => Resolved

Fixed in r40898 (2.9 branch), r40899 (trunk).
________________________________________
= Comment - Entry #3 by tim_one on Nov 14, 2005 11:30 am

When the Zope test suite fails, it's a Zope issue, so I don't agree with closing this report.  Higher test levels don't exist to hide tests that fail, they're meant for extraordinarily expensive tests (for example, most of the multi-process ZEO tests run at level 2).  If you want to say a test shouldn't run at all, the test should be disabled (for example, by commenting it out, or even by deleting it).

I can confirm that

    test.py -vv --all -t functional

passes on Windows:

Running unit tests:
  Running:
    test_basic_functionality (Persistence.tests.test_mapping)
    C:\Code\Zope\lib\python\Products\Five\site\tests\functional.txt
  Ran 14 tests with 0 failures and 0 errors in 0.156 seconds.

________________________________________
= Comment - Entry #2 by philikon on Nov 14, 2005 11:08 am

This is a known issue. I wrote this test and it passes fine in Five 1.2. For some reason, it doesn't pass when run together with other tests in Five 1.3 (that's why I put it on a different level for the time being). When you run it by itself, it passes, though. Maybe you can confirm that.

Fixing this problem is on the Five TODO list (see the Five trunk), so maybe we can close this bug entry here since it's not directly related to Zope 2 but Five.
________________________________________
= Request - Entry #1 by tim_one on Nov 14, 2005 10:14 am

This was originally reported in issue 1931, against Windows.  Turns out it fails on Linux too, but these particular tests don't run at all unless you pass `--all` to test.py:

Failure in test /home/tim/Zope/lib/python/Products/Five/site/tests/functional.txt
Failed doctest test for functional.txt
  File "/home/tim/Zope/lib/python/Products/Five/site/tests/functional.txt", line 0

----------------------------------------------------------------------
File "/home/tim/Zope/lib/python/Products/Five/site/tests/functional.txt", line 77, in functional.txt
Failed example:
    print http(r'''
    GET /test_folder_1_/site/@@checkSiteManager.html HTTP/1.1
    ''')
Differences (ndiff with -expected +actual):
      HTTP/1.1 200 OK
    - ...
    + Content-Length: 184
    + Content-Type: text/plain
    + <BLANKLINE>
    - {'IFiveUtilityRegistry.providedBy(utility_service)': True,
    ?                                                      ^^^
    + {'IFiveUtilityRegistry.providedBy(utility_service)': False,
    ?                                                      ^^^^
    -  'isinstance(zapi.getSiteManager(), FiveSiteManager)': True,
    ?                                                        ^^^
    +  'isinstance(zapi.getSiteManager(), FiveSiteManager)': False,
    ?                                                        ^^^^
    -  'zapi.getSiteManager() is zapi.getGlobalSiteManager()': False}
    ?                                                          ^^^^
    +  'zapi.getSiteManager() is zapi.getGlobalSiteManager()': True}
    ?                                                          ^^^
----------------------------------------------------------------------
File "/home/tim/Zope/lib/python/Products/Five/site/tests/functional.txt", line 105, in functional.txt
Failed example:
    print http(r'''
    GET /test_folder_1_/site/@@lookupUtilities.html HTTP/1.1
    ''')
Differences (ndiff with -expected +actual):
    - HTTP/1.1 200 OK
    - ...
    - zapi.getUtility(IDummyUtility) == dummy: True
    + HTTP/1.1 500 Internal Server Error
    + Content-Length: 159
    + Content-Type: text/html
    + <BLANKLINE>
    + <html>
    +   <head><title>site</title></head>
    +   <body bgcolor="#FFFFFF">
    + <BLANKLINE>
    +  (<InterfaceClass Products.Five.site.tests.dummy.IDummyUtility>, '')
    + <BLANKLINE>
    +   </body>
    + </html>
    + <BLANKLINE>
    + <BLANKLINE>

==============================================================



More information about the Zope-Collector-Monitor mailing list