[Zope3-dev] zope3 unittests - xmlparser failure

Joseph Wayne Norton norton@alum.mit.edu
Tue, 22 Jan 2002 11:30:46 +0900


Andreas -

Thanks ... that fixed the problem.

BTW, the Modules/Setup file for Python2.2 doesn't mention the newer
version of expat. Here are the changes I made to Setup to use the
newer version of expat:

# expat 
$EXPAT = "EXPAT_DIR=$pfx/expat/expat-$PKG{expat}{ver}"; 
mysystem("$perl -i -pe 's!^#EXPAT_DIR=/usr/local/src/expat!$EXPAT!' ./Modules/Setup.dist"); 
mysystem("$perl -i -pe 's!^#pyexpat !pyexpat pyexpat.c -DHAVE_EXPAT_H -I\\\$(EXPAT_DIR)/include -L\\\$(EX\PAT_DIR)/lib -lexpat #!' ./Modules/Setup.dist"); 

- j

At Mon, 21 Jan 2002 07:02:47 -0500,
Andreas Jung wrote:
> 
> You need the latest version of expat (1.95-2).
> See also http://sf.net/projects/expat.
> 
> - aj
> 
> ----- Original Message -----
> From: "Joseph Wayne Norton" <norton@alum.mit.edu>
> To: <zope3-dev@zope.org>
> Sent: Thursday, January 17, 2002 20:04
> Subject: [Zope3-dev] zope3 unittests - xmlparser failure
> 
> 
> >
> > Hello.
> >
> > I just wanted to find out if any others are having trouble with the
> > following test (see below) case for the zope3 unittests - all other
> > tests pass fine.
> >
> > - I using python 2.2 and zope3 (latest cvs checkout) on the linux
> > platform.
> >
> > - I have included expat in python 2.2 modules setup file as follows:
> >
> >            $EXPAT = "EXPAT_DIR=$pfx/expat/expat-$PKG{expat}{ver}";
> >            mysystem("$perl -i -pe
> 's!^#EXPAT_DIR=/usr/local/src/expat!$EXPAT!' ./Modules/Setup.dist");
> >            mysystem("$perl -i -pe 's/^#pyexpat /pyexpat /'
> ./Modules/Setup.dist");
> >
> > - I have built and installed expat from the following url -
> >   ftp://ftp.jclark.com/pub/xml/expat-1.2.tar.gz
> >
> > thanks,
> >
> > - joe
> >
> >
> > ======================================================================
> > FAIL: check_simple_html (Zope.TAL.tests.test_xmlparser.XMLParserTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File
> "/usr/local/src/namaste_src/zope/src/BRANCH/Zope3/lib/python/Zope/TAL/tests/
> test_xmlparser.py", line 114, in check_simple_html
> >     self._run_check("""\
> >   File
> "/usr/local/src/namaste_src/zope/src/BRANCH/Zope3/lib/python/Zope/TAL/tests/
> test_xmlparser.py", line 95, in _run_check
> >     self.assert_(parser.get_events() == events, parser.get_events())
> >   File "/usr/local/namaste/zfs-lib/lib/python2.2/unittest.py", line 262,
> in failUnless
> >     if not expr: raise self.failureException, msg
> > AssertionError: [('starttag', u'html', []), ('data', u' \n'), ('comment',
> u'comment1a\n-></foo><bar>&lt;<?pi?></foo<bar\ncomment1b'), ('data', u'\n'),
> ('starttag', u'img', [u'src', u'Bar', u'ismap', u'']), ('endtag', u'img'),
> ('data', u'sample\ntext\n'), ('comment', u'comment2a- -comment2b'), ('data',
> u'\n'), ('endtag', u'html')]
> >
> > ----------------------------------------------------------------------
> > Ran 345 tests in 9.926s
> >
> > _______________________________________________
> > Zope3-dev mailing list
> > Zope3-dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope3-dev
> >
>