We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c10cf0 commit f5f9555Copy full SHA for f5f9555
Lib/test/test_tarfile.py
@@ -3230,7 +3230,7 @@ def check_files_present(self, directory):
3230
got_paths = set(
3231
p.relative_to(directory)
3232
for p in pathlib.Path(directory).glob('**/*'))
3233
- if self.extraction_filter in (None, 'data'):
+ if self.extraction_filter == 'data':
3234
# The 'data' filter is expected to reject special files
3235
for path in 'ustar/fifotype', 'ustar/blktype', 'ustar/chrtype':
3236
got_paths.discard(pathlib.Path(path))
0 commit comments