Skip to content

Commit

Permalink
Update tests/test_conda_subprocess.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
jan-janssen and coderabbitai[bot] authored Jun 25, 2024
1 parent cde08b6 commit 2cbbe9e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/test_conda_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,11 @@ def test_check_output_path(self):
)

def test_check_output_name(self):
if os.name == "nt":
self.assertEqual(
check_output("python --version", prefix_name=self.env_name),
b"Python 3.12.1\r\n",
)
else:
self.assertEqual(
check_output("python --version", prefix_name=self.env_name),
b"Python 3.12.1\n",
)
expected_output = b"Python 3.12.1\r\n" if os.name == "nt" else b"Python 3.12.1\n"
self.assertEqual(
check_output("python --version", prefix_name=self.env_name),
expected_output,
)

def test_check_output_universal_newlines(self):
self.assertEqual(
Expand Down

0 comments on commit 2cbbe9e

Please sign in to comment.