<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>&nbsp;</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>
          &nbsp;pytest.py --cc=mingw32-gcc
          pypy/translator/test/test_exceptiontransform.py<br>
          but we still can not use --cc option on specify function:<br>
          &nbsp;pytest.py --cc=mingw32-gcc
pypy/translator/test/test_exceptiontransform.py::TestOOType::()::test_simple</font></div>
      <div>&nbsp;</div>
      <div><font face="Calibri">this is how to add this support:</font></div>
      <div>&nbsp;</div>
      <div><font face="Calibri">***
          pypy-pypy-4a38b43757e3\_pytest\config.py&nbsp;Sat May 26 09:16:32
          2012<br>
          --- pypy-pypy-4a38b43757e3.bookaa\_pytest\config.py&nbsp;Sat May 26
          09:26:36 2012<br>
          ***************<br>
          *** 157,162 ****<br>
          --- 157,164 ----<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for arg in args + [current]:<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if hasattr(arg, 'startswith') and
          arg.startswith("--"):<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue<br>
          +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if arg.find('::') != -1:<br>
          +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arg = arg[:arg.find('::')]<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; anchor = current.join(arg, abs=1)<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if anchor.check(): # we found some file object<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self._path2confmods[None] =
          self.getconftestmodules(anchor)</font></div>
      <div>&nbsp;</div>
      <div><font face="Calibri">now we can do this:<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pytest.py --cc=mingw32-gcc
pypy/translator/test/test_exceptiontransform.py::TestOOType::()::test_simple<br>
          and this<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pypy&gt;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>&nbsp;</div>
      <div><font face="Calibri">E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AssertionError: ilasm failed to
          assemble (ilasm):<br>
          E<br>
          E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Microsoft (R) .NET Framework IL Assembler.&nbsp; Version
          2.0.50727.4927<br>
          E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copyright (c) Microsoft Corporation.&nbsp; All rights
          reserved.<br>
          E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Assembling 'e:\tem\usession-default-137\main.il'&nbsp; to
          EXE --&gt; 'e:\tem\usession-default-137\main.exe'<br>
          E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Source file is ANSI<br>
          E<br>
          E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ***** FAILURE *****<br>
          E<br>
          E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e:\tem\usession-default-137\main.il(161) : error :
          syntax error at token '[' in:&nbsp;&nbsp;&nbsp;&nbsp; call [mscorlib]System.Object
          rpyexc_fetch_value()</font></div>
      <div>&nbsp;</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>