[Zope-Checkins] CVS: Zope/lib/python/Testing - common.py:1.3.108.1
Jim Fulton
jim@zope.com
Wed, 17 Jul 2002 13:28:18 -0400
Update of /cvs-repository/Zope/lib/python/Testing
In directory cvs.zope.org:/tmp/cvs-serv13357/lib/python/Testing
Modified Files:
Tag: Zope-2_7-development-branch
common.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.
=== Zope/lib/python/Testing/common.py 1.3 => 1.3.108.1 ===
+import unittest
+
# Default test runner
TestRunner = unittest.TextTestRunner