File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -164,10 +164,19 @@ def _get_python_inc_from_config(plat_specific, spec_prefix):
164
164
the host
165
165
platform Python installation, while the current Python
166
166
executable is from the build platform installation.
167
+
168
+ >>> monkeypatch = getfixture('monkeypatch')
169
+ >>> gpifc = _get_python_inc_from_config
170
+ >>> monkeypatch.setitem(gpifc.__globals__, 'get_config_var', str.lower)
171
+ >>> gpifc(False, '/usr/bin/')
172
+ >>> gpifc(False, '')
173
+ >>> gpifc(False, None)
174
+ 'includepy'
175
+ >>> gpifc(True, None)
176
+ 'confincludepy'
167
177
"""
168
- if not spec_prefix :
169
- return
170
- return get_config_var ('CONF' * plat_specific + 'INCLUDEPY' )
178
+ if spec_prefix is None :
179
+ return get_config_var ('CONF' * plat_specific + 'INCLUDEPY' )
171
180
172
181
173
182
def _get_python_inc_posix_prefix (prefix ):
You can’t perform that action at this time.
0 commit comments