Skip to content

Commit

Permalink
Revert "fixup! composite asserts"
Browse files Browse the repository at this point in the history
This reverts commit a9b7353.
  • Loading branch information
webknjaz committed Dec 4, 2024
1 parent a8330a5 commit b551c75
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ def test_url_package(runner, line, dependency, generate_hashes):
["-n", "--rebuild", "--no-build-isolation"]
+ (["--generate-hashes"] if generate_hashes else []),
)
assert 0 == out.exit_code and dependency in out.stderr
assert dependency in out.stderr
assert out.exit_code == 0


@pytest.mark.parametrize(
Expand Down Expand Up @@ -3455,7 +3456,13 @@ def test_compile_recursive_extras_build_targets(runner, tmp_path, current_resolv
# The following packages are considered to be unsafe in a requirements file:
# setuptools
"""
assert 0 == out.exit_code and expected == out.stdout, f"\n{out.stdout=}\n\n{out.stderr=}\n\n"
try:
assert out.exit_code == 0
assert expected == out.stdout
except Exception: # pragma: no cover
print(out.stdout)
print(out.stderr)
raise


@backtracking_resolver_only
Expand Down

0 comments on commit b551c75

Please sign in to comment.