We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a9946f commit 30b7331Copy full SHA for 30b7331
distutils/_modified.py
@@ -63,7 +63,7 @@ def missing_as_newer(source):
63
return missing == 'newer' and not os.path.exists(source)
64
65
ignored = os.path.exists if missing == 'ignore' else None
66
- return any(
+ return not os.path.exists(target) or any(
67
missing_as_newer(source) or _newer(source, target)
68
for source in filter(ignored, sources)
69
)
distutils/tests/test_modified.py
@@ -119,7 +119,6 @@ def test_newer_pairwise_group(groups_target):
119
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".
0 commit comments