Skip to content

Commit 9a9946f

Browse files
committed
Add test capturing missed expectation.
Ref pypa/distutils#284
1 parent 8993718 commit 9a9946f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

distutils/tests/test_modified.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,11 @@ def test_newer_pairwise_group(groups_target):
117117
newer = newer_pairwise_group([groups_target.newer], [groups_target.target])
118118
assert older == ([], [])
119119
assert newer == ([groups_target.newer], [groups_target.target])
120+
121+
122+
@pytest.mark.xfail(reason="pypa/distutils#284")
123+
def test_newer_group_no_sources_no_target(tmp_path):
124+
"""
125+
Consider no sources and no target "newer".
126+
"""
127+
assert newer_group([], str(tmp_path / 'does-not-exist'))

0 commit comments

Comments
 (0)