Commits

Amaury Forgeot d'Arc committed 66a17d5

Unskip test_carbonpython (maybe temporary)
and make it pass on Windows

  • Participants
  • Parent commits 96d4341
  • Branches separate-compilation

Comments (0)

Files changed (1)

pypy/translator/cli/test/test_carbonpython.py

 import py
-py.test.skip("it passes usually, but fails on buildbot, no clue why")
+#py.test.skip("it passes usually, but fails on buildbot, no clue why")
 
-import os
-import os.path
+import sys, os
 from pypy.tool import udir
 from pypy.translator.cli.rte import Target
 from pypy.translator.cli.carbonpython import DllDef, export, collect_entrypoints,\
     def _csharp(self, source, references=[], netmodules=[]):
         tmpfile = udir.udir.join('tmp.cs')
         tmpfile.write(TEMPLATE % source)
-        flags = ['/r:%s' % ref for ref in references]
-        flags += ['/addmodule:%s' % mod for mod in netmodules]
-        
+        if sys.platform == 'win32':
+            flags = ['/r:%s.dll' % ref for ref in references]
+        else:
+            flags = ['/r:%s'     % ref for ref in references]
+        if sys.platform == 'win32':
+            flags += ['/addmodule:%s.netmodule' % mod for mod in netmodules]
+        else:
+            flags += ['/addmodule:%s'           % mod for mod in netmodules]
+
         class MyTarget(Target):
             SOURCES = [str(tmpfile)]
             FLAGS = flags