Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jun 18, 2024
1 parent 7a9797b commit 421ca4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conda_subprocess/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def Popen(
command = shlex_split_unicode(command)

# update environment
environment_dict = os.environ.copy()
if env is not None:
environment_dict = os.environ.copy()
environment_dict.update(env)

# spawn subprocess
Expand Down
2 changes: 1 addition & 1 deletion tests/test_conda_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_popen(self):
def test_environment_variable(self):
self.assertEqual(
check_output(
"echo ${TESTVAR}", prefix_path=self.env_path, env={"TESTVAR": "test"}
"echo $TESTVAR", prefix_path=self.env_path, env={"TESTVAR": "test"}
),
b"test\n",
)

0 comments on commit 421ca4f

Please sign in to comment.