Fix pytest 5.x compatibility
This commit is contained in:
parent
ff32f822ba
commit
eb2627721e
6 changed files with 28 additions and 28 deletions
|
@ -62,7 +62,7 @@ class TestBigfile:
|
|||
piece = io.BytesIO(f.read(1024 * 1024))
|
||||
f.close()
|
||||
site.content_manager.verifyPiece(inner_path, i * 1024 * 1024, piece)
|
||||
assert "Invalid hash" in str(err)
|
||||
assert "Invalid hash" in str(err.value)
|
||||
|
||||
def testSparseFile(self, site):
|
||||
inner_path = "sparsefile"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue