Skip to content

Commit

Permalink
Update test to check multiblock_last_padding output
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Sep 30, 2019
1 parent fc83ef6 commit b0f6202
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_files_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ def test_multiblock_zerosize():

@pytest.mark.files
@pytest.mark.timeout(5, method='thread')
@pytest.mark.xfail()
def test_multiblock_last_padding():
archive = py7zr.SevenZipFile(open(os.path.join(testdata_path, 'mblock_3.7z'), 'rb'))
tmpdir = tempfile.mkdtemp()
archive.extractall(path=tmpdir)
m = hashlib.sha256()
m.update(open(os.path.join(tmpdir, '5.13.0/mingw73_64/plugins/canbus/qtvirtualcanbusd.dll'), 'rb').read())
assert m.digest() == binascii.unhexlify('98985de41ddba789d039bb10d86ea3015bf0d8d9fa86b25a0490044c247233d3')
shutil.rmtree(tmpdir)

0 comments on commit b0f6202

Please sign in to comment.