Skip to content

Commit 4df4d21

Browse files
committed
Fix test_tarfile.
1 parent 2637f45 commit 4df4d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3267,7 +3267,7 @@ def check_files_present(self, directory):
32673267
got_paths = set(
32683268
p.relative_to(directory)
32693269
for p in pathlib.Path(directory).glob('**/*'))
3270-
if self.extraction_filter in (None, 'data'):
3270+
if self.extraction_filter == 'data':
32713271
# The 'data' filter is expected to reject special files
32723272
for path in 'ustar/fifotype', 'ustar/blktype', 'ustar/chrtype':
32733273
got_paths.discard(pathlib.Path(path))

0 commit comments

Comments
 (0)