File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def missing_as_newer(source):
6363 return missing == 'newer' and not os .path .exists (source )
6464
6565 ignored = os .path .exists if missing == 'ignore' else None
66- return any (
66+ return not os . path . exists ( target ) or any (
6767 missing_as_newer (source ) or _newer (source , target )
6868 for source in filter (ignored , sources )
6969 )
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ def test_newer_pairwise_group(groups_target):
119119 assert newer == ([groups_target .newer ], [groups_target .target ])
120120
121121
122- @pytest .mark .xfail (reason = "pypa/distutils#284" )
123122def test_newer_group_no_sources_no_target (tmp_path ):
124123 """
125124 Consider no sources and no target "newer".
You can’t perform that action at this time.
0 commit comments