Skip to content

Commit

Permalink
[bug] [test] Fix patch_os_environ_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-hitonami committed Sep 8, 2022
1 parent 20116c2 commit e742213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def patch_os_environ_helper(custom_environ: dict, excludes: dict):
environ[key] = custom_environ[key]
try:
cached_environ = os.environ
os.environ = custom_environ
os.environ = environ
yield os.environ
finally:
os.environ = cached_environ
Expand Down

0 comments on commit e742213

Please sign in to comment.