<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=gb2312 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16466"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>according to <A
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><FONT face=Calibri></FONT> </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><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>any advice
?<BR>thanks,<BR>Bookaa</FONT></DIV></BODY></HTML>