[Zope-dev] [testrunner] Problems with optparse?

Andreas Jung lists at zopyx.com
Wed Jan 17 14:53:40 EST 2007


suxmac2:~/sandboxes/Zope/Zope ajung$ bin/zopectl test -t Products.Five
Hi,

I encounter some strange problems with the testrunner (testing the Zope 2 
trunk):


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 -t Products.Five
Parsing /Users/ajung_data/sandboxes/Zope/Zope/etc/zope.conf
Running tests at level 1
Test-module import failures:

Module: zope.testbrowser.tests

Traceback (most recent call last):
  File 
"/Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testbrowser/__init__.py", 
line 20, in ?
    from testing import Browser
  File 
"/Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testbrowser/testing.py", 
line 27, in ?
    from zope.testbrowser import browser
  File 
"/Users/ajung_data/sandboxes/Zope/Zope/lib/python/zope/testbrowser/browser.py", 
line 19, in ?
    from test import pystone
  File "/Users/ajung_data/sandboxes/Zope/Zope/test.py", line 103, in ?
    help="""\
  File "/opt/python-2.4.4/lib/python2.4/optparse.py", line 938, in 
add_option
    self._check_conflict(option)
  File "/opt/python-2.4.4/lib/python2.4/optparse.py", line 913, in 
_check_conflict
    option)
OptionConflictError: option --config-file: conflicting option string(s): 
--config-file


Another error: running 'zopectl test -D'  tries to debug optparse 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)


Any ideas?

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20070117/6360c7cd/attachment.bin


More information about the Zope-Dev mailing list