Skip to content

Commit

Permalink
Simplify test_install_distribution_duplicate_extras
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Aug 6, 2024
1 parent 44a3b3c commit 4368e49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/functional/test_install_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,8 @@ def test_install_distribution_duplicate_extras(
to_install = data.packages.joinpath("LocalExtras")
package_name = f"{to_install}[bar]"
result = script.pip_install_local(package_name, package_name)
expected = f"Double requirement given: {package_name}"
with pytest.raises(AssertionError):
assert expected in result.stderr
unexpected = f"Double requirement given: {package_name}"
assert unexpected not in result.stderr


def test_install_distribution_union_with_constraints(
Expand Down

0 comments on commit 4368e49

Please sign in to comment.