[ZCM] [ZC] 2268/ 3 Resolve "zopectl test -D not working"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2268 Update (Resolve) "zopectl test -D not working" Status Resolved, Zope/bug medium To followup, visit: http://www.zope.org/Collectors/Zope/2268 ============================================================== = Resolve - Entry #3 by ajung on Jan 20, 2007 2:28 am Status: Pending => Resolved Solved by moving the "from test import pystone" into the related method in testbrowser/browser.py. ________________________________________ = Comment - Entry #2 by ajung on Jan 19, 2007 2:19 pm testbrowser/browser.py tries to import test.pystone but it catches the 'test.py' script of the Zope 2 testrunner. figuration file.\n', 'callback': <function load_config_file at 0x4d80170>} (Pdb) where /Users/ajung_data/sandboxes/Zope/Zope/bin/test.py(118)?() -> sys.exit(testrunner.run(defaults)) /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testing/testrunner.py(245)run() -> failed = run_with_options(options) /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testing/testrunner.py(342)run_with_options() -> tests_by_layer_name = find_tests(options) /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testing/testrunner.py(943)find_tests() -> for suite in find_suites(options): /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testing/testrunner.py(990)find_suites() -> module = import_name(module_name) /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testing/testrunner.py(1136)import_name() -> __import__(name) /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testbrowser/__init__.py(20)?() -> from testing import Browser /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testbrowser/testing.py(27)?() -> from zope.testbrowser import browser /Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testbrowser/browser.py(19)?() -> from test import pystone /Users/ajung_data/sandboxes/Zope/Zope/test.py(103)?() -> help="""\ > /opt/python-2.4.4/lib/python2.4/optparse.py(931)add_option() -> if type(args[0]) is types.StringType: ________________________________________ = Request - Entry #1 by ajung on Jan 19, 2007 2:07 pm The -D debugging options debugs the testrunner itself: Running tests via: /opt/python-2.4.4/bin/python /Users/ajung_data/sandboxes/Zope/Zope/bin/test.py -v --config-file /Users/ajung_data/sandboxes/Zope/Zope/etc/zope.conf -D Parsing /Users/ajung_data/sandboxes/Zope/Zope/etc/zope.conf Running tests at level 1 optparse.OptionConflictError: option --config-file: conflicting option string(s): --config-file > /opt/python-2.4.4/lib/python2.4/optparse.py(913)_check_conflict() -> option) (Pdb) ==============================================================