Skip to content

Commit

Permalink
Add test capturing missed expectation.
Browse files Browse the repository at this point in the history
Ref #284
  • Loading branch information
jaraco committed Aug 19, 2024
1 parent 8993718 commit 9a9946f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions distutils/tests/test_modified.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,11 @@ def test_newer_pairwise_group(groups_target):
newer = newer_pairwise_group([groups_target.newer], [groups_target.target])
assert older == ([], [])
assert newer == ([groups_target.newer], [groups_target.target])


@pytest.mark.xfail(reason="pypa/distutils#284")
def test_newer_group_no_sources_no_target(tmp_path):
"""
Consider no sources and no target "newer".
"""
assert newer_group([], str(tmp_path / 'does-not-exist'))

0 comments on commit 9a9946f

Please sign in to comment.