File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55import io
66import json
7- import sys
87
98import libarchive
109from libarchive .extract import EXTRACT_OWNER , EXTRACT_PERM , EXTRACT_TIME
1110from libarchive .write import memory_writer
1211from mock import patch
13-
1412import pytest
1513
1614from . 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
You can’t perform that action at this time.
0 commit comments