[Zope-Checkins] CVS: Zope/lib/python/Products/Transience/tests - __init__.py:1.1.6.1
Jim Fulton
jim@zope.com
Wed, 17 Jul 2002 13:27:46 -0400
Update of /cvs-repository/Zope/lib/python/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv13357/lib/python/Products/Transience/tests
Added Files:
Tag: Zope-2_7-development-branch
__init__.py
Log Message:
Refactored the way Zope 2 tests are done to work with Python 2.2, in
preparation for Zope 2.7:
- Turned all test directories into packages by adding __init__.py
files.
- Fixed up some tests that either counted on being run as scripts or
depended on deep magic performed by the old testrunner script.
- Removed the old testrunner script because:
o It caused tests to fail in strange and mysterious ways under
Python 2.2
o It output tracebacks that showed only file names, not paths. This
made it really painful to find the tests that failed.
- Copied the test.py from Zope 3 into the root directory. This script
works great. It makes it easy to run all the tests, or just the
tests in a package. It has a number of options, not all of which
have been tested with Zope 2. I suspect that the build option
doesn't work.
A remaining issue is that setup.py leaves behind a build directory
that confuses the test script. I need to look into this. For now, just
delete the build directory before running the tests.
=== Added File Zope/lib/python/Products/Transience/tests/__init__.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################