[ZCM] [ZC] 1968/ 1 Request ""make test" fails in a release tarball"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon Dec 12 14:30:57 EST 2005
Issue #1968 Update (Request) ""make test" fails in a release tarball"
Status Pending, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1968
==============================================================
= Request - Entry #1 by slinkp on Dec 12, 2005 2:30 pm
With a 2.9.0-b1 release tarball, the "test" target of makefile fails due to importing an old, removed testing package. The below patch is a partial fix to use the new testrunner, but it's still broken -- it gives lots of test errors that I don't understand and don't have time to investigate further.
Index: releases/Zope2/test.py
===================================================================
--- releases/Zope2/test.py (revision 40735)
+++ releases/Zope2/test.py (working copy)
@@ -1,3 +1,4 @@
+
#!/usr/bin/env python2.4
##############################################################################
#
@@ -29,8 +30,9 @@
lib = os.path.join(here, "build", "lib." + PLAT_SPEC)
sys.path.append(lib)
-import zope.app.testing.test
+from zope.testing import testrunner
if __name__ == '__main__':
- args = sys.argv[:1] + ["-ul", lib] + sys.argv[1:]
- zope.app.testing.test.process_args(args)
+ args = ["-u", "--test-path", lib] + sys.argv[1:]
+ testrunner.run(args)
+
==============================================================
More information about the Zope-Collector-Monitor
mailing list