From 0382f6f5b57fe4aae9fd0ed08e39539a493495e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Tue, 18 Jun 2024 19:05:38 +0200 Subject: [PATCH] test environment --- tests/test_conda_subprocess.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_conda_subprocess.py b/tests/test_conda_subprocess.py index 2e8661c..6523050 100644 --- a/tests/test_conda_subprocess.py +++ b/tests/test_conda_subprocess.py @@ -51,7 +51,8 @@ def test_popen(self): self.assertIsNone(output[1]) def test_environment_variable(self): - self.assertEqual( - check_output("env", prefix_path=self.env_path, env={"TESTVAR": "test"}), - b"test\n", + self.assertTrue( + "TESTVAR" in check_output( + "env", prefix_path=self.env_path, env={"TESTVAR": "test"}, universal_newlines=True + ).split("\n"), )