Skip to content

Commit

Permalink
tests: minor adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Matsuoka <[email protected]>
  • Loading branch information
cmatsuoka committed Feb 13, 2025
1 parent ca49208 commit 3721fa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/plugins/test_poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def _get_system_python_interpreter(self) -> str | None:
with lf.action_executor() as ctx:
ctx.execute(actions, stdout=outfile, stderr=errfile)

error = exc_info.value.stderr
assert error and expected_error_text in error.decode()
assert exc_info.value.stderr is not None
assert expected_error_text in exc_info.value.stderr.decode()

output = out.read_text()
expected_text = textwrap.dedent(
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/plugins/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def _get_system_python_interpreter(self) -> str | None:
with lf.action_executor() as ctx:
ctx.execute(actions, stdout=outfile, stderr=errfile)

error = exc_info.value.stderr
assert error and expected_error_text in error.decode()
assert exc_info.value.stderr is not None
assert expected_error_text in exc_info.value.stderr.decode()

output = out.read_text()
expected_text = textwrap.dedent(
Expand Down

0 comments on commit 3721fa5

Please sign in to comment.