File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def environment(monkeypatch):
33
33
monkeypatch .setattr (os .path , 'join' , os .path .join )
34
34
monkeypatch .setattr (os .path , 'isabs' , os .path .isabs )
35
35
monkeypatch .setattr (os .path , 'splitdrive' , os .path .splitdrive )
36
- monkeypatch .setattr (sysconfig , '_config_vars ' , copy ( sysconfig ._config_vars ) )
36
+ monkeypatch .setattr (sysconfig , 'get_config_vars ' , sysconfig .get_config_vars )
37
37
38
38
39
39
@pytest .mark .usefixtures ('save_env' )
Original file line number Diff line number Diff line change 26
26
27
27
# make sure _config_vars is initialized
28
28
get_config_var ("LDSHARED" )
29
- from distutils .sysconfig import _config_vars as _CONFIG_VARS # noqa
29
+ from distutils .sysconfig import get_config_vars # noqa: E402
30
+
31
+ _CONFIG_VARS = get_config_vars ()
30
32
31
33
32
34
def _customize_compiler_for_shlib (compiler ):
You can’t perform that action at this time.
0 commit comments