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 2637f45 commit 4df4d21Copy full SHA for 4df4d21
Lib/test/test_tarfile.py
@@ -3267,7 +3267,7 @@ def check_files_present(self, directory):
3267
got_paths = set(
3268
p.relative_to(directory)
3269
for p in pathlib.Path(directory).glob('**/*'))
3270
- if self.extraction_filter in (None, 'data'):
+ if self.extraction_filter == 'data':
3271
# The 'data' filter is expected to reject special files
3272
for path in 'ustar/fifotype', 'ustar/blktype', 'ustar/chrtype':
3273
got_paths.discard(pathlib.Path(path))
0 commit comments