Skip to content

Commit

Permalink
Fix test_wheel_metadata_works
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 10, 2024
1 parent c4137c2 commit b6cb5ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/metadata/test_metadata_pkg_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def test_wheel_metadata_works() -> None:
name = "simple"
version = "0.1.0"
require_a = "a==1.0"
require_b = 'b==1.1; extra == "also_b"'
requires = [require_a, require_b, 'c==1.2; extra == "also_c"']
extras = ["also_b", "also_c"]
require_b = 'b==1.1; extra == "also-b"'
requires = [require_a, require_b, 'c==1.2; extra == "also-c"']
extras = ["also-b", "also-c"]
requires_python = ">=3"

metadata = email.message.Message()
Expand All @@ -109,7 +109,7 @@ def test_wheel_metadata_works() -> None:
assert set(extras) == set(dist.iter_provided_extras())
assert [require_a] == [str(r) for r in dist.iter_dependencies()]
assert [require_a, require_b] == [
str(r) for r in dist.iter_dependencies(["also_b"])
str(r) for r in dist.iter_dependencies(["also-b"])
]
assert metadata.as_string() == dist.metadata.as_string()
assert SpecifierSet(requires_python) == dist.requires_python
Expand Down

0 comments on commit b6cb5ee

Please sign in to comment.