<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
text="#000000">
On 26/05/2012 4:55 AM, bookaa wrote:
<blockquote cite="mid:68622C6A999E45D0A12075506A6EB2A2@vSHliutaotao"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.7600.16466">
<div> </div>
<div><font face="Calibri">according to <a moz-do-not-send="true"
href="http://web.archiveorange.com/archive/v/cZ0K2Jye2cyGARzh9OlA">http://web.archiveorange.com/archive/v/cZ0K2Jye2cyGARzh9OlA</a><br>
after patch pypy/conftest.py, pytest.py now support --cc
option:<br>
pytest.py --cc=mingw32-gcc
pypy/translator/test/test_exceptiontransform.py<br>
but we still can not use --cc option on specify function:<br>
pytest.py --cc=mingw32-gcc
pypy/translator/test/test_exceptiontransform.py::TestOOType::()::test_simple</font></div>
<div> </div>
<div><font face="Calibri">this is how to add this support:</font></div>
<div> </div>
<div><font face="Calibri">***
pypy-pypy-4a38b43757e3\_pytest\config.py Sat May 26 09:16:32
2012<br>
--- pypy-pypy-4a38b43757e3.bookaa\_pytest\config.py Sat May 26
09:26:36 2012<br>
***************<br>
*** 157,162 ****<br>
--- 157,164 ----<br>
for arg in args + [current]:<br>
if hasattr(arg, 'startswith') and
arg.startswith("--"):<br>
continue<br>
+ if arg.find('::') != -1:<br>
+ arg = arg[:arg.find('::')]<br>
anchor = current.join(arg, abs=1)<br>
if anchor.check(): # we found some file object<br>
self._path2confmods[None] =
self.getconftestmodules(anchor)</font></div>
<div> </div>
<div><font face="Calibri">now we can do this:<br>
pytest.py --cc=mingw32-gcc
pypy/translator/test/test_exceptiontransform.py::TestOOType::()::test_simple<br>
and this<br>
pypy>test_all.py --cc=mingw32-gcc
translator/test/test_exceptiontransform.py::TestOOType::()::test_simple</font></div>
<div><font face="Calibri"><br>
but, I can not pass the test, with or withou --cc option.
Error message:</font></div>
<div> </div>
<div><font face="Calibri">E AssertionError: ilasm failed to
assemble (ilasm):<br>
E<br>
E Microsoft (R) .NET Framework IL Assembler. Version
2.0.50727.4927<br>
E Copyright (c) Microsoft Corporation. All rights
reserved.<br>
E Assembling 'e:\tem\usession-default-137\main.il' to
EXE --> 'e:\tem\usession-default-137\main.exe'<br>
E Source file is ANSI<br>
E<br>
E ***** FAILURE *****<br>
E<br>
E e:\tem\usession-default-137\main.il(161) : error :
syntax error at token '[' in: call [mscorlib]System.Object
rpyexc_fetch_value()</font></div>
<div> </div>
<div><font face="Calibri">any advice ?<br>
thanks,<br>
Bookaa</font></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pypy-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pypy-dev@python.org">pypy-dev@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/pypy-dev">http://mail.python.org/mailman/listinfo/pypy-dev</a>
</pre>
</blockquote>
<p>You can set an environment variable CC i.e.</p>
<p>set CC=mingw32</p>
<p>Then run your test. The compilation will try to use a compiler
called ming32.</p>
<p>Matti<br>
</p>
</body>
</html>