We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f16327 commit 7e751d3Copy full SHA for 7e751d3
distutils/ccompiler.py
@@ -903,7 +903,9 @@ def has_function( # noqa: C901
903
except (LinkError, TypeError):
904
return False
905
else:
906
- os.remove(os.path.join(self.output_dir or '', "a.out"))
+ os.remove(
907
+ self.executable_filename("a.out", output_dir=self.output_dir or '')
908
+ )
909
finally:
910
for fn in objects:
911
os.remove(fn)
distutils/tests/test_ccompiler.py
@@ -55,7 +55,6 @@ def test_set_include_dirs(c_file):
55
compiler.compile(_make_strs([c_file]))
56
57
58
-@pytest.mark.xfail('platform.system() == "Windows"')
59
def test_has_function_prototype():
60
# Issue https://github.com/pypa/setuptools/issues/3648
61
# Test prototype-generating behavior.
0 commit comments