Re: zope-tests - FAILED: 4, OK: 11

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20141227123752.GA6069@platonas>
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

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 173 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFUnqggkVdEXeem148RAoESAJ9I4MNVKSMuLW8QcAMOcZDzrRAirwCcD7+1
kD7qshbho8ah3Co8XfDgPjE=
=VKwN
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.