Skip to content

Commit fcbec5b

Browse files
committed
prune unnecessary import and newlines
1 parent eeed123 commit fcbec5b

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tests/test_rwx.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44

55
import io
66
import json
7-
import sys
87

98
import libarchive
109
from libarchive.extract import EXTRACT_OWNER, EXTRACT_PERM, EXTRACT_TIME
1110
from libarchive.write import memory_writer
1211
from mock import patch
13-
1412
import pytest
1513

1614
from . import check_archive, in_dir, treestat
@@ -141,15 +139,12 @@ def write_callback(data):
141139
return len(data)
142140

143141
with libarchive.custom_writer(write_callback, archfmt) as archive:
144-
archive.add_file_from_memory(
145-
entry_path, entry_size, entry_data)
142+
archive.add_file_from_memory(entry_path, entry_size, entry_data)
146143

147144
buf = b''.join(blocks)
148145
with libarchive.memory_reader(buf) as memory_archive:
149146
for archive_entry in memory_archive:
150147
expected = b''.join(entry_data)
151-
actual = b''.join(
152-
archive_entry.get_blocks(),
153-
)
148+
actual = b''.join(archive_entry.get_blocks())
154149
assert expected == actual
155150
assert archive_entry.path == entry_path

0 commit comments

Comments
 (0)