File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1111
1212from __future__ import annotations
1313
14- import os
1514import tarfile
1615import tempfile
1716import unittest
@@ -96,7 +95,7 @@ def test_valid_zip_extraction(self):
9695 self .assertTrue ((extract_dir / "another_file.json" ).exists ())
9796
9897 # Verify content
99- with open (extract_dir / "normal_file.txt" , "r" ) as f :
98+ with open (extract_dir / "normal_file.txt" ) as f :
10099 self .assertEqual (f .read (), "This is a normal file" )
101100
102101 except Exception as e :
@@ -150,7 +149,7 @@ def test_valid_tar_extraction(self):
150149 self .assertTrue ((extract_dir / "subdir" / "nested_file.txt" ).exists ())
151150
152151 # Verify content
153- with open (extract_dir / "normal_file.txt" , "r" ) as f :
152+ with open (extract_dir / "normal_file.txt" ) as f :
154153 self .assertEqual (f .read (), "This is a normal file" )
155154
156155 except Exception as e :
You can’t perform that action at this time.
0 commit comments