There was an error while loading. Please reload this page.
1 parent 760aaa3 commit 13be7abCopy full SHA for 13be7ab
1 file changed
tests/test_metadata.py
@@ -9,4 +9,6 @@ def test_resolve_distribution_information():
9
fake_plugin_spec = PluginSpec("foo", "bar", pytest.fixture)
10
dist = resolve_distribution_information(fake_plugin_spec)
11
assert dist.metadata["Name"] == "pytest"
12
- assert dist.metadata["License"] == "MIT"
+ # Support both legacy License field and PEP 639 License-Expression
13
+ license_value = dist.metadata.get("License-Expression") or dist.metadata.get("License")
14
+ assert license_value == "MIT"
0 commit comments