Skip to content

Commit

Permalink
Merge pull request #89 from isuruf/spawn
Browse files Browse the repository at this point in the history
Fix spawn fallback
  • Loading branch information
jaraco authored Dec 24, 2021
2 parents 975a6f1 + 43f1475 commit a5af364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/_msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def _fallback_spawn(self, cmd, env):
return
warnings.warn(
"Fallback spawn triggered. Please update distutils monkeypatch.")
with unittest.mock.patch('os.environ', env):
with unittest.mock.patch.dict('os.environ', env):
bag.value = super().spawn(cmd)

# -- Miscellaneous methods -----------------------------------------
Expand Down

0 comments on commit a5af364

Please sign in to comment.