--- a/pypy/interpreter/test/test_app_main.pyThu Nov 14 03:50:49
2013 -0500
+++ b/pypy/interpreter/test/test_app_main.pySun Nov 17 07:46:26 2013
+0800
@@ -942,7 +942,8 @@
self.w_tmp_dir = self.space.wrap(tmp_dir)
-foo_py = prefix.join('foo.py').write("pass")
+foo
Windows system, after
set cc=mingw32-gcc
PyPy can not pass many tests:
pytest.py pypy/translator/test/test_unsimplify.py
pytest.py
pypy/translator/c/test/test_extfunc.py::test_dictlike_environ_getitem
...
I find this is because MinGW32 gcc compile default use msvcrt.dll, but we
with
set cc=mingw32-gcc
this test fail:
pytest.py pypy/rlib/test/test_rpoll.py::test_translate
this is how to patch:
diff -crN pypy-pypy-4a38b43757e3/pypy/rlib/_rsocket_rffi.py
pypy-pypy-4a38b43757e3.bookaa/pypy/rlib/_rsocket_rffi.py
*** pypy-pypy-4a38b43757e3/pypy/rlib/_rsocket_rffi.py
-cc=mingw32-gcc pypy\rlib\test\test_rposix.py
pytest.py pypy\rlib\test\test_rposix.py
---
diff -crN pypy-pypy-4a38b43757e3/_pytest/config.py
pypy-pypy-4a38b43757e3.bookaa/_pytest/config.py
*** pypy-pypy-4a38b43757e3/_pytest/config.py Tue May 22 14:03:20 2012
--- pypy-pypy-4a38b43757e3.booka
-gcc
pypy/translator/test/test_exceptiontransform.py::TestOOType::()::test_simple
this is how to add this support:
*** pypy-pypy-4a38b43757e3\_pytest\config.py Sat May 26 09:16:32 2012
--- pypy-pypy-4a38b43757e3.bookaa\_pytest\config.py Sat May 26 09:26:36 2012
***
*** 157,162
yes, it should be like this.
thank you
Bookaa
From: Amaury Forgeot d'Arc
Sent: Wednesday, May 23, 2012 9:26 PM
To: bookaa
Cc: pypy-dev@python.org
Subject: Re: [pypy-dev] bug with MinGW32
2012/5/23 bookaa
if platform.platform.cc.startswith('mingw32'):
This is be
b/rposix.py
pypy-pypy-4a38b43757e3.bookaa/pypy/rlib/rposix.py
*** pypy-pypy-4a38b43757e3/pypy/rlib/rposix.py Tue May 22 14:03:20 2012
--- pypy-pypy-4a38b43757e3.bookaa/pypy/rlib/rposix.py Wed May 23 20:25:10
2012
***
*** 75,80
--- 75,85
return 0;
}
I download last version of PyPy source from https://github.com/pypy/pypy
in MinGW32 (mingw-get-inst-20120426.exe), run:
pypy/bin/py.py --cc=mingw32-gcc
get error:
pypy.translator.platform.CompilationError: CompilationError(err="""
e:\tem\usession-unknown-1\gcctest.c: In function '
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 fi
thank you for encourage!
as for the bugs, please tell me exacty how to run, which test.
My system is Win7, pypy tests get many error even without any change.
Bookaa
From: Amaury Forgeot d'Arc
Sent: Saturday, April 21, 2012 7:48 AM
To: gmail
Cc: pypy-dev@python.org
Subject: Re: [pyp
yes, pypy's output c files is enough for c compilers. But its terrible if you
want to read the c source codes.
I really very interest in make a python to c++ converter, based on pypy
translator.
thanks
Bookaa
From: Alexander Pyattaev
Sent: Saturday, April 21, 2012 6:54 AM
To: pyp
ndswith('\\\n'): # line ending in '\'
lines[i] = lines[i][:-2] + lines[i+1]
del lines[i+1]
elif lines[i].endswith('\\\r\n'): # line ending in '\'
lines[i] = lines[i
12 matches
Mail list logo