Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
groodt committed Mar 13, 2024
1 parent 547cd61 commit 0dceb80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flit_core/flit_core/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ def test_metadata_multiline(tmp_path):
('foo [extra_1, extra.2, extra-3, extra__4, extra..5, extra--6]', 'foo [extra-1, extra-2, extra-3, extra-4, extra-5, extra-6]'),
('foo', 'foo'),
('foo[bar]', 'foo[bar]'),
# https://packaging.python.org/en/latest/specifications/core-metadata/#requires-dist-multiple-use
('pkginfo', 'pkginfo'),
('zope.interface (>3.5.0)', 'zope.interface (>3.5.0)'),
("pywin32 >1.0; sys_platform == 'win32'", "pywin32 >1.0; sys_platform == 'win32'"),
],
)
def test_metadata_2_3_requires_dist(requires_dist, expected_result):
Expand Down Expand Up @@ -200,4 +204,4 @@ def test_metadata_2_3_provides_extra(provides_extra, expected_result):

msg = email.parser.Parser(policy=email.policy.compat32).parse(sio)
assert msg['Provides-Extra'] == expected_result
assert not msg.defects
assert not msg.defects

0 comments on commit 0dceb80

Please sign in to comment.