[Zope-Coders] expat fun & games
Chris Withers
chrisw@nipltd.com
Sat, 16 Feb 2002 10:57:33 +0000
"Fred L. Drake, Jr." wrote:
>
> Installing PyXML 0.7 should be fine; it uses Expat 1.95.2, which is
> what I recommend. Python 2.1* on Windows uses Expat 1.2, which is
> old. Python 2.2* on Windows uses 1.95.2, so that's good too.
Waagh... are there any plans to fix this?
I'm fairly sure this'll be the reason this test is failing on windows:
> ======================================================================
> FAIL: check_simple_html (test_xmlparser.XMLParserTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test_xmlparser.py", line 114, in check_simple_html
> File "test_xmlparser.py", line 95, in _run_check
> File "c:\python21\lib\unittest.py", line 273, in failUnlessEqual
> raise self.failureException, (msg or '%s != %s' % (first, second))
> AssertionError: [('starttag', u'html', []), ('data', u' \n'), ('comment',
> u'comment1a\n-></foo><bar><<?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')] != [('decl', '1.0', 'iso-8859-1', -1),
> ('doctype', 'html', 'foo', 'bar', 0), ('starttag', 'html', []), ('data', ' \n'), ('comment',
> 'comment1a\n-></foo><bar><<?pi?></foo<bar\ncomment1b'), ('data', '\n'), ('starttag', 'img', ['src',
> 'Bar', 'ismap', '']), ('endtag', 'img'), ('data', 'sample\ntext\n'), ('comment', 'comment2a-
> -comment2b'), ('data', '\n'), ('endtag', 'html')]
> ----------------------------------------------------------------------
If python can't be fixed, perhaps this test could be fixed in some other way?
cheers,
Chris