[Zope-Checkins] CVS: Zope/lib/python/SearchIndex/tests - testUnTextIndex.py:1.12.4.1
Jim Fulton
jim@zope.com
Wed, 17 Jul 2002 13:28:17 -0400
Update of /cvs-repository/Zope/lib/python/SearchIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv13357/lib/python/SearchIndex/tests
Modified Files:
Tag: Zope-2_7-development-branch
testUnTextIndex.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/SearchIndex/tests/testUnTextIndex.py 1.12 => 1.12.4.1 ===
import SearchIndex.UnTextIndex
import SearchIndex.GlobbingLexicon
+from Testing.common import Dummy, catch_log_errors, ignore_log_errors
+
class Tests(unittest.TestCase):
def setUp(self):