Zope2 is an open-source web application server.
Python HTML
Latest commit 274d00d Jan 18, 2017 @mauritsvanrees mauritsvanrees committed with hannosch Fixed dummy runTest on functional test case. (#90)
In functional doc tests you can apparently have a test case that has
no runTest method.  Until now the Testing package added a dummy
runTest method in that case, and set it to None.

But when this dummy runTest method gets called, you get an error:

  Error in test runTest (Testing.ZopeTestCase.ZopeTestCase.FunctionalTestCase)
  Traceback (most recent call last):
    File ".../lib/python2.7/unittest/case.py", line 329, in run
  TypeError: 'NoneType' object is not callable

Simply importing Testing.ZopeTestCase.FunctionalTestCase in a new test
file may be enough to trigger this.

So this has something to do with the order in which tests are found.

I fixed it by making the dummy runTest method callable.



Zope is an open-source web application server.

This document provides some general information about Zope and provides links to other documents.

Installation information can be found in docs/INSTALL.rst. Other documentation is also in the "docs" directory and in the Zope documentation section at https://zope.readthedocs.io .


Follow the instructions in docs/INSTALL.rst to install Zope.

If you do not have a source checkout with docs, you can find the latest install docs online at https://zope.readthedocs.io/en/latest/INSTALL-buildout.html

Note that you cannot simply do pip install zope2, because you need specific versions of all dependencies. Follow the documentation to ensure you get the correct versions, or else installation is very likely to fail.


The Zope License is included in LICENSE.txt.

Bug tracker

Bugs reports should be made through the Zope bugtracker at https://github.com/zopefoundation/Zope/issues. A bug report should contain detailed information about how to reproduce the bug.