[Zope-dev] zope-tests - FAILED: 4, OK: 11

Marius Gedminas marius at gedmin.as
Sat Dec 27 13:37:52 CET 2014


On Sat, Dec 27, 2014 at 01:59:54PM +0200, Marius Gedminas wrote:
> On Fri, Dec 26, 2014 at 07:33:43PM -0500, Tres Seaver wrote:
> > On 12/26/2014 07:00 PM, Zope tests summarizer wrote:
> > 
> > > [4]    FAILED  winbot / zope.ptresource_py_265_32 
> > > https://mail.zope.org/pipermail/zope-tests/2014-December/086250.html
> > 
> > Hmm:
> > 
> > -------------------------- %< ---------------------------------
> > Error in test testBrowserDefault (zope.ptresource.tests.Test)
> > Traceback (most recent call last):
> >   File "c:\Python26_32\lib\unittest.py", line 279, in run
> >     testMethod()
> >   File
> > "c:\buildslave\zope.ptresource\build\src\zope\ptresource\tests.py", line
> > 69, in testBrowserDefault
> >     self.assertEqual(view(),
> >   File
> > "c:\buildslave\zope.ptresource\build\src\zope\ptresource\ptresource.py",
> > line 75, in GET
> >     return pt(self.request)
> >   File
> > "c:\buildslave\zope.ptresource\build\src\zope\ptresource\ptresource.py",
> > line 50, in __call__
> >     return self.pt_render(namespace)
> >   File
> > "d:\eggs\zope.pagetemplate-4.0.4-py2.6.egg\zope\pagetemplate\pagetemplate.py",
> > line 122, in pt_render
> >     self._cook_check()
> >   File
> > "d:\eggs\zope.pagetemplate-4.0.4-py2.6.egg\zope\pagetemplate\pagetemplatefile.py",
> > line 102, in _cook_check
> >     text, type_ = self._read_file()
> >    - __traceback_info__: c:\temp\tmp09gypc
> >   File
> > "d:\eggs\zope.pagetemplate-4.0.4-py2.6.egg\zope\pagetemplate\pagetemplatefile.py",
> > line 79, in _read_file
> >     f = open(self.filename, "rb")
> >    - __traceback_info__: c:\temp\tmp09gypc
> > IOError: [Errno 13] Permission denied: 'c:\\temp\\tmp09gypc'
> > -------------------------- %< ---------------------------------
> 
> Something Windows mandatory access controls can't open file for reading
> if another (or event the same?) process has it open for writing?
> 
> https://github.com/zopefoundation/zope.ptresource/commit/eb7dfa7c706edec7e27cf42cb3adb5e9a52b7c50

In the past I sometimes could debug Windows failures with wine.

  wine c:/python2.7/python bootstrap.py

     => tries to download setuptools-8.4.zip from PyPI and gets a 404
        error

AFAIU there briefly _was_ a setuptools 8.4 release that got pulled
from PyPI because of https://bitbucket.org/pypa/setuptools/issue/314

  wine c:/python2.7/python bootstrap.py --setuptools-version=8.3

     => fails with ImportError: email

Looks like https://github.com/buildout/buildout/issues/217

  wine c:/python2.7/python bootstrap.py --setuptools-version=8.3 --allow-site-packages
  bin/buildout.exe
  bin/test -pvc

Yup, fails the same way.

The docs confirm my suspicion:

  "Whether the name can be used to open the file a second time, while
  the named temporary file is still open, varies across platforms (it
  can be so used on Unix; it cannot on Windows NT or later)."
    -- https://docs.python.org/2/library/tempfile.html#tempfile.NamedTemporaryFile

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: Digital signature
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20141227/b7c2a5b0/attachment.sig>


More information about the Zope-Dev mailing list