A test bug in Windows system
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
Hi Bookaa, 2012/4/21 bookaa <rorsoft@gmail.com>:
run: pypy>test_all.py translator\test\test_unsimplify.py
will get a error: WindowsError: [Error 5] : .... it can not os.unlink(..) a file.
Yes, this is because you are using pypy to run test_all.py. Please use CPython. There are issues like that, particularly on Windows, that we never digged into. (This one is due to http://pypy.org/compat.html : PyPy does not support refcounting semantics, so files are not closed immediately.) A bientôt, Armin.
participants (2)
-
Armin Rigo -
bookaa