Skip to content

Commit f5f9555

Browse files
authored
Fix test failure in test_tarfile
1 parent 3c10cf0 commit f5f9555

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
@@ -3230,7 +3230,7 @@ def check_files_present(self, directory):
32303230
got_paths = set(
32313231
p.relative_to(directory)
32323232
for p in pathlib.Path(directory).glob('**/*'))
3233-
if self.extraction_filter in (None, 'data'):
3233+
if self.extraction_filter == 'data':
32343234
# The 'data' filter is expected to reject special files
32353235
for path in 'ustar/fifotype', 'ustar/blktype', 'ustar/chrtype':
32363236
got_paths.discard(pathlib.Path(path))

0 commit comments

Comments
 (0)