[pypy-dev] A test bug in Windows system

bookaa rorsoft at gmail.com
Sat Apr 21 05:12:09 CEST 2012


My os is Win7, Trying pypy-pypy-2346207d9946

run:
    pypy>test_all.py translator\test\test_unsimplify.py

will get a error:
    WindowsError: [Error 5] : ....
it can not os.unlink(..) a file.

I find this is because 
    fd = os.open(tmpfile, os.O_WRONLY | os.O_CREAT, 0)
will create a readonly file in Windows system.

It should be
    fd = os.open(tmpfile, os.O_WRONLY | os.O_CREAT)

After fix this, still many test errors....

Bookaa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120421/3a9ad070/attachment.html>


More information about the pypy-dev mailing list