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 11
11
12
12
from __future__ import annotations
13
13
14
- import os
15
14
import tarfile
16
15
import tempfile
17
16
import unittest
@@ -96,7 +95,7 @@ def test_valid_zip_extraction(self):
96
95
self .assertTrue ((extract_dir / "another_file.json" ).exists ())
97
96
98
97
# Verify content
99
- with open (extract_dir / "normal_file.txt" , "r" ) as f :
98
+ with open (extract_dir / "normal_file.txt" ) as f :
100
99
self .assertEqual (f .read (), "This is a normal file" )
101
100
102
101
except Exception as e :
@@ -150,7 +149,7 @@ def test_valid_tar_extraction(self):
150
149
self .assertTrue ((extract_dir / "subdir" / "nested_file.txt" ).exists ())
151
150
152
151
# Verify content
153
- with open (extract_dir / "normal_file.txt" , "r" ) as f :
152
+ with open (extract_dir / "normal_file.txt" ) as f :
154
153
self .assertEqual (f .read (), "This is a normal file" )
155
154
156
155
except Exception as e :
You can’t perform that action at this time.
0 commit comments