[Zope3-checkins]
SVN: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py
remove unused code. the testrunner is only supposed to be
called from a
Christian Theune
ct at gocept.com
Sat May 3 10:08:12 EDT 2008
Log message for revision 86215:
remove unused code. the testrunner is only supposed to be called from a
wrapper script by now.
Changed:
U zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py
-=-
Modified: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py
===================================================================
--- zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py 2008-05-03 14:06:18 UTC (rev 86214)
+++ zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py 2008-05-03 14:08:12 UTC (rev 86215)
@@ -2165,37 +2165,6 @@
return unittest.TestSuite(suites)
-def main():
- default = [
- '--path', os.path.split(sys.argv[0])[0],
- '--tests-pattern', '^testrunner$',
- ]
- run(default)
-
-if __name__ == '__main__':
-
- # if --resume_layer is in the arguments, we are being run from the
- # test runner's own tests. We need to adjust the path in hopes of
- # not getting a different version installed in the system python.
- if len(sys.argv) > 1 and sys.argv[1] == '--resume-layer':
- sys.path.insert(0,
- os.path.split(
- os.path.split(
- os.path.split(
- os.path.abspath(sys.argv[0])
- )[0]
- )[0]
- )[0]
- )
-
- # Hm, when run as a script, we need to import the testrunner under
- # its own name, so that there's the imported flavor has the right
- # real_pdb_set_trace.
- import zope.testing.testrunner
- from zope.testing import doctest
-
- main()
-
# Test the testrunner
###############################################################################
More information about the Zope3-Checkins
mailing list