Skip to content

Commit 0f8979f

Browse files
author
Johannes Holmberg
committed
fixup! pythongh-132933: Allow zipapp target to overwrite filtered source file
1 parent 1a76a0d commit 0f8979f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_zipapp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def test_target_overwrites_source_file(self):
114114
zipapp.create_archive(source, target)
115115

116116
def test_target_overwrites_filtered_source_file(self):
117-
# The target cannot be one of the files to add.
117+
# If there's a filter that excludes the target,
118+
# the overwrite check shouldn't trigger.
118119
source = self.tmpdir
119120
(source / '__main__.py').touch()
120121
target = source / 'target.pyz'

0 commit comments

Comments
 (0)