Skip to content

Commit

Permalink
Clear os.environ
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Jan 29, 2024
1 parent c98fa93 commit 1c30442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rapids_pre_commit_hooks/test_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def git_repo():


def test_get_target_branch(git_repo):
with patch.dict("os.environ", {}):
with patch.dict("os.environ", {}, clear=True):
with open(os.path.join(git_repo.working_tree_dir, "file.txt"), "w") as f:
f.write("File\n")
git_repo.index.add(["file.txt"])
Expand Down

0 comments on commit 1c30442

Please sign in to comment.