Skip to content

Commit e204524

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 74b603a commit e204524

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/apps/test_download_and_extract.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from __future__ import annotations
1313

14-
import os
1514
import tarfile
1615
import tempfile
1716
import 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:

0 commit comments

Comments
 (0)