[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/viewmodule - browser.py:1.8

Stephan Richter stephan.richter at tufts.edu
Fri Apr 2 09:52:13 EST 2004


On Thursday 01 April 2004 20:38, Tim Peters wrote:
> That's OK -- the Zope2 tests are always broken on Windows too <wink>.  The
> good news is that they're *usually* just this easy to fix.  If you're
> looking for more of a challenge, see the XXX comment I left behind some
> time ago in the test for zope.app.pythonpage.PythonPage (that one still
> fails on Windows, and I wasn't able to figure out the source of the stray
> forward(!) slash that apparently appears only on Windows).

I have looked at this many times; I am still puzzled. I just did some more 
investigation work and found out that the Windows version behaves correctly 
and the Linux version is wrong. The filename self.__filename() produces is 
"/pp" (I added a test for that now) and it makes no sense that compile() 
should drop it. I tried to do 

compile('prin "foo"', '/pp', 'exec') 

in the Python prompt and the slash was there. And I know __filename() returns 
"/pp". It is all pretty weird.

Regards,
Stephan 
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training



More information about the Zope3-Checkins mailing list