Skip to content

Commit e28a7c9

Browse files
fix #668: harden the integration test for the expected extras of the distribution
1 parent 6340374 commit e28a7c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ v6.4.1
33

44

55
* fix regression #669: restore get_version signature
6+
* fix #668: harden the selftest for distribution extras
67

78
6.4.0
89
======

testing/test_integration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ def testwarn_on_broken_setuptools():
142142

143143

144144
@pytest.mark.issue(611)
145-
def test_provides_toml_exta():
145+
def test_distribution_procides_extras():
146146
try:
147147
from importlib.metadata import distribution
148148
except ImportError:
149149
from importlib_metadata import distribution
150150

151151
dist = distribution("setuptools_scm")
152-
assert "toml" in dist.metadata["Provides-Extra"]
152+
assert sorted(dist.metadata.get_all("Provides-Extra")) == ["test", "toml"]

0 commit comments

Comments
 (0)