Skip to content

Commit a5af364

Browse files
authored
Merge pull request #89 from isuruf/spawn
Fix spawn fallback
2 parents 975a6f1 + 43f1475 commit a5af364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distutils/_msvccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def _fallback_spawn(self, cmd, env):
527527
return
528528
warnings.warn(
529529
"Fallback spawn triggered. Please update distutils monkeypatch.")
530-
with unittest.mock.patch('os.environ', env):
530+
with unittest.mock.patch.dict('os.environ', env):
531531
bag.value = super().spawn(cmd)
532532

533533
# -- Miscellaneous methods -----------------------------------------

0 commit comments

Comments
 (0)