File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -860,7 +860,7 @@ def has_function( # noqa: C901
860
860
f = os .fdopen (fd , "w" )
861
861
try :
862
862
for incl in includes :
863
- f .write ("""#include %s \n """ % incl )
863
+ f .write ("""#include "%s" \n """ % incl )
864
864
if not includes :
865
865
# Use "char func(void);" as the prototype to follow
866
866
# what autoconf does. This prototype does not match
Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ def test_has_function_prototype():
66
66
assert compiler .has_function ('exit' )
67
67
with pytest .deprecated_call (match = 'includes is deprecated' ):
68
68
# abort() is a valid expression with the <stdlib.h> prototype.
69
- assert compiler .has_function ('abort' , includes = ['< stdlib.h> ' ])
69
+ assert compiler .has_function ('abort' , includes = ['stdlib.h' ])
70
70
with pytest .deprecated_call (match = 'includes is deprecated' ):
71
71
# But exit() is not valid with the actual prototype in scope.
72
- assert not compiler .has_function ('exit' , includes = ['< stdlib.h> ' ])
72
+ assert not compiler .has_function ('exit' , includes = ['stdlib.h' ])
73
73
# And setuptools_does_not_exist is not declared or defined at all.
74
74
assert not compiler .has_function ('setuptools_does_not_exist' )
75
75
with pytest .deprecated_call (match = 'includes is deprecated' ):
76
76
assert not compiler .has_function (
77
- 'setuptools_does_not_exist' , includes = ['< stdio.h> ' ]
77
+ 'setuptools_does_not_exist' , includes = ['stdio.h' ]
78
78
)
79
79
80
80
You can’t perform that action at this time.
0 commit comments