Skip to content

Commit 68adf39

Browse files
committed
copy os.environ safely
1 parent 78adaf2 commit 68adf39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_singularity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sys
2-
import copy
32
import os
43
import pytest
54

@@ -22,7 +21,7 @@ def test_singularity_pullfolder(tmp_path):
2221
os.chdir(str(workdir))
2322
pullfolder = tmp_path / "pullfolder"
2423
pullfolder.mkdir()
25-
env = copy.deepcopy(os.environ)
24+
env = os.environ.copy()
2625
env["SINGULARITY_PULLFOLDER"] = str(pullfolder)
2726
result_code, stdout, stderr = get_main_output(
2827
['--singularity', get_data("tests/sing_pullfolder_test.cwl"), "--message", "hello"], env=env)

0 commit comments

Comments
 (0)