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"), )