File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4337,7 +4337,7 @@ def test_tar_filter(self):
4337
4337
# The 'tar' filter returns TarInfo objects with the same name/type.
4338
4338
# (It can also fail for particularly "evil" input, but we don't have
4339
4339
# that in the test archive.)
4340
- with tarfile .TarFile .open (tarname ) as tar :
4340
+ with tarfile .TarFile .open (tarname , encoding = "iso8859-1" ) as tar :
4341
4341
for tarinfo in tar .getmembers ():
4342
4342
try :
4343
4343
filtered = tarfile .tar_filter (tarinfo , '' )
@@ -4349,7 +4349,7 @@ def test_tar_filter(self):
4349
4349
def test_data_filter (self ):
4350
4350
# The 'data' filter either raises, or returns TarInfo with the same
4351
4351
# name/type.
4352
- with tarfile .TarFile .open (tarname ) as tar :
4352
+ with tarfile .TarFile .open (tarname , encoding = "iso8859-1" ) as tar :
4353
4353
for tarinfo in tar .getmembers ():
4354
4354
try :
4355
4355
filtered = tarfile .data_filter (tarinfo , '' )
You can’t perform that action at this time.
0 commit comments