[pypy-dev] I find a bug

2013-11-16 Thread bookaa
--- 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

[pypy-dev] MinGW32 support PyPy with mscr90.dll

2012-06-04 Thread bookaa
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

[pypy-dev] test_rpoll.py::test_translate with MinGW32

2012-05-28 Thread bookaa
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

[pypy-dev] pytest test_rposix.py with mingw32

2012-05-26 Thread bookaa
-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

[pypy-dev] add --cc option to pytest

2012-05-25 Thread bookaa
-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

Re: [pypy-dev] bug with MinGW32

2012-05-24 Thread bookaa
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

Re: [pypy-dev] bug with MinGW32

2012-05-23 Thread bookaa
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; }

[pypy-dev] bug with MinGW32

2012-05-22 Thread bookaa
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 '

[pypy-dev] A test bug in Windows system

2012-04-20 Thread bookaa
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

Re: [pypy-dev] output readable c

2012-04-20 Thread bookaa
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

Re: [pypy-dev] output readable c

2012-04-20 Thread bookaa
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

[pypy-dev] dotviewer bug on Windows system

2012-03-30 Thread bookaa
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