Test error with Python 2.3.4c1
Berthold Höllmann
bhoel at web.de
Sat May 15 16:27:08 EDT 2004
aahz at pythoncraft.com (Aahz) writes:
> In article <m27jvdh5k6.fsf at pchoel.psh>, Berthold Höllmann <bhoel at web.de> wrote:
>>aahz at pythoncraft.com (Aahz) writes:
>>> In article <m2fza1h6ka.fsf at pchoel.psh>, Berthold H=F6llmann <bhoel at web.de=
>>> wrote:
>>>>
...>
> In that case, you should check against the CVS version of Python; I
> believe there've been some changes that affect this kind of thing. If
> that fixes your problem, please close the bug report.
OK, I just checked the latest CVS and test_re succeeds. But should't
this fixed for 2.3.4 as well?
Another problem not there in the CVS version is an error in test_sax,
that fails for me on 2.3.4c1 with
>echo test_sax > tests
>make test TESTOPTS="-l -ftests -v"
case $MAKEFLAGS in \
*-s*) LD_LIBRARY_PATH=/home/devel/compile/Python-2.3.4c1:/usr/local/pgsql/lib:/usr/teTeX/lib CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) LD_LIBRARY_PATH=/home/devel/compile/Python-2.3.4c1:/usr/local/pgsql/lib:/usr/teTeX/lib CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
running build
running build_ext
running build_scripts
find ./Lib -name '*.py[co]' -print | xargs rm -f
LD_LIBRARY_PATH=/home/devel/compile/Python-2.3.4c1:/usr/local/pgsql/lib:/usr/teTeX/lib ./python -E -tt ./Lib/test/regrtest.py -l -ftests -v
test_sax
Failed test_attrs_empty
Failed test_attrs_wattr
Failed test_double_quoteattr
Failed test_escape_all
Failed test_escape_basic
Failed test_escape_extra
Failed test_expat_attrs_empty
Failed test_expat_attrs_wattr
Failed test_expat_dtdhandler
Failed test_expat_entityresolver
Failed test_expat_file
Failed test_expat_incomplete
Failed test_expat_incremental
Failed test_expat_incremental_reset
Failed test_expat_inpsource_filename
Failed test_expat_inpsource_location
Failed test_expat_inpsource_stream
Failed test_expat_inpsource_sysid
Failed test_expat_locator_noinfo
Failed test_expat_locator_withinfo
Failed test_expat_nsattrs_empty
Failed test_expat_nsattrs_wattr
Failed test_filter_basic
Failed test_make_parser
Failed test_make_parser2
Failed test_nsattrs_empty
Failed test_nsattrs_wattr
Failed test_quoteattr_basic
test test_sax crashed -- exceptions.TypeError: int argument required
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 394, in runtest
the_package = __import__(abstest, globals(), locals(), [])
File "/home/devel/compile/Python-2.3.4c1/Lib/test/test_sax.py", line 689, in ?
confirm(value(), name)
File "/home/devel/compile/Python-2.3.4c1/Lib/test/test_sax.py", line 502, in test_sax_parse_exception_str
DummyLocator(None, 1)))
File "/usr/local/lib/python2.3/site-packages/_xmlplus/sax/_exceptions.py", line 94, in __str__
return "%s:%d:%d: %s" % (sysid, self.getLineNumber(),
TypeError: int argument required
1 test failed:
test_sax
make: [test] Error 1 (ignored)
...
self.getLineNumber() is None if I check using pdb, but what
disconcerts me is the
File "/usr/local/lib/python2.3/site-packages/_xmlplus/sax/_exceptions.py", line 94, in __str__
line. Why is sax taken from the installed version instead of the
2.3.4c1 version.
Regards
Berthold
--
bhoel at web.de / http://starship.python.net/crew/bhoel/
More information about the Python-list
mailing list