Skip to content

Commit

Permalink
Merge pull request #2381 from devitocodes/hotfix-conftest
Browse files Browse the repository at this point in the history
tests: Fixup conftest's set_run_reset()
  • Loading branch information
mloubout committed Jun 4, 2024
2 parents a00b66f + 6a2ac49 commit 32c2a2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ def set_run_reset(env_vars, call):
return False
finally:
os.environ['DEVITO_PYTEST_FLAG'] = '0'
os.environ.update({k: v for k, v in old_env_vars.items() if v is not None})
for k, v in old_env_vars.items():
if v is None:
os.environ.pop(k, None)
else:
os.environ[k] = v


def parallel(item, m):
Expand Down

0 comments on commit 32c2a2d

Please sign in to comment.