Author: Ronan Lamy <[email protected]>
Branch: testing-cleanup
Changeset: r85183:df4238f06f16
Date: 2016-06-15 17:10 +0100
http://bitbucket.org/pypy/pypy/changeset/df4238f06f16/
Log: windows fix
diff --git a/pypy/module/cpyext/test/support.py
b/pypy/module/cpyext/test/support.py
--- a/pypy/module/cpyext/test/support.py
+++ b/pypy/module/cpyext/test/support.py
@@ -20,7 +20,7 @@
else:
so_ext = 'dll'
-def c_compile(cfilenames, eci, outputfilename=None, standalone=True):
+def c_compile(cfilenames, eci, outputfilename, standalone=True):
self = rpy_platform
self._ensure_correct_math()
self.cfilenames = cfilenames
@@ -62,10 +62,7 @@
for framework in self.frameworks:
self.link_extra += ['-framework', framework]
- if outputfilename is None:
- self.outputfilename = py.path.local(cfilenames[0]).new(ext=ext)
- else:
- self.outputfilename = py.path.local(outputfilename)
+ self.outputfilename = py.path.local(outputfilename).new(ext=ext)
self.eci = eci
import distutils.errors
basename = self.outputfilename.new(ext='')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit