Skip to content

Commit 3b54acd

Browse files
committed
Discard more special files
1 parent 5bf4a48 commit 3b54acd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_tarfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3302,7 +3302,8 @@ def check_files_present(self, directory):
33023302
for p in pathlib.Path(directory).glob('**/*'))
33033303
if self.extraction_filter in (None, 'data'):
33043304
# The 'data' filter is expected to reject special files
3305-
got_paths.discard(pathlib.Path('ustar/fifotype'))
3305+
for path in 'ustar/fifotype', 'ustar/blktype', 'ustar/chrtype':
3306+
got_paths.discard(pathlib.Path(path))
33063307
self.assertEqual(self.control_paths, got_paths)
33073308

33083309
@contextmanager

0 commit comments

Comments
 (0)