I just tried building the Zope 3 trunk with the Python 2.5 alpha 2
that was released a few hours ago.  Unfortunately, the testrunner dies
in the standard library.  This is probably related to changes in the
optparse module; it was updated shortly before the release to the
latest Optik release.

I don't have time to look into it right now, but if someone does, it
would be good to figure out if this is a problem in optparse, or in
the way we're using it.

Here's the traceback I got:

python2.5 setup.py  \
        build_ext -i install_data --install-dir .
running build_ext
running build_headers
running install_data
python2.5 test.py -v
Traceback (most recent call last):
  File "test.py", line 61, in <module>
    result = testrunner.run(defaults)
  File "/home/fdrake/projects/Zope/Zope3-py2.5/src/zope/testing/testrunner.py",
line 191, in run
    options = get_options(args, defaults)
  File "/home/fdrake/projects/Zope/Zope3-py2.5/src/zope/testing/testrunner.py",
line 1641, in get_options
    default_setup, _ = parser.parse_args(default_setup_args)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 1376,
in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 1416,
in _process_args
    self._process_long_opt(rargs, values)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 1491,
in _process_long_opt
    option.process(opt, value, values, self)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 774,
in process    value = self.convert_value(opt, value)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 766,
in convert_value
    return self.check_value(opt, value)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 761,
in check_value
    return checker(self, opt, value)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 420,
in check_builtin
    return cvt(value)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 407,
in _parse_int
    return _parse_num(val, int)
  File "/home/fdrake/plat/linux/lib/python2.5/optparse.py", line 394,
in _parse_num
    if val[:2].lower() == "0x":         # hexadecimal
TypeError: unsubscriptable object
make: *** [test_inplace] Error 1


Fred L. Drake, Jr.    <fdrake at gmail.com>
"Don't let schooling interfere with your education." -- Mark Twain
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to