Hello.

Just for fun ... I tried to run the tests too.  I built Python2.2b2
from source and had to manually modify the Setup.dist file to build
and include pyexpat.

I then ran the zope test suite and all passed except one ...

Traceback (most recent call last):
  File 
"/usr/local/namaste/zfs-lib/zope/zope-3.0.0/lib/python/Zope/TAL/tests/test_xmlparser.py",
 line 114, in check_simple_html
    self._run_check("""\
  File 
"/usr/local/namaste/zfs-lib/zope/zope-3.0.0/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 256, 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')]

I'm ran on the linux platform with expat built from source (version
1.2 - ftp://ftp.jclark.com/pub/xml/expat-1.2.tar.gz).

regards,

- j

p.s. It is my own personal taste but I don't really care for the tkgui
interface for running the zope test suite.  Any possibilites of making
the test suite run in a fashion similar to the python installation
test suite?


At Tue, 04 Dec 2001 12:37:12 +0000,
Andy Dawkins wrote:
> 
> > Zope 3X requires Python 2.2b2.
> 
> Shane
> 
> Are you sure you mean Python2.2b2?
> 
> I tried this but seem to get problems with the pyexpat module.
> 
> Would a different version do, Or have you solved any problems with the
> pyexpat module in 2.2.b2?
> 
> I have added a few print statements to my xml.sax.__init__.py and
> commented out the try, except block around the import of expatreader.py
> lines 16,18-22
> 
> This gives me a more usfull traceback:
> 
> [root@legolas Zope3]# python2.2 z3.py
> ['xml.sax.expatreader']
> xml.sax.expatreader
> Traceback (most recent call last):
>   File "z3.py", line 38, in ?
>     config(os.getcwd())
>   File "/usr/local/zope/Zope3/lib/python/Zope/App/config.py", line 34,
> in config
>     xmlconfig(file)
>   File
> "/usr/local/zope/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
> 96, in xmlconfig
>     parser=make_parser()
>   File "/usr/local/Python2.2b2/Lib/xml/sax/__init__.py", line 83, in
> make_parser
>     return _create_parser(parser_name)
>   File "/usr/local/Python2.2b2/Lib/xml/sax/__init__.py", line 107, in
> _create_parser
>     drv_module = __import__(parser_name,{},{},['create_parser'])
>   File "/usr/local/Python2.2b2/Lib/xml/sax/expatreader.py", line 17, in
> ?
>     from xml.parsers import expat
>   File "/usr/local/Python2.2b2/Lib/xml/parsers/expat.py", line 4, in ?
>     from pyexpat import *
> ImportError: No module named pyexpat
> 
> Cheers
> 
> -AndyD
> 
> _______________________________________________
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to