Fix pytest 5.x compatibility

This commit is contained in:
shortcutme 2019-07-03 18:36:41 +02:00
parent ff32f822ba
commit eb2627721e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
6 changed files with 28 additions and 28 deletions

View file

@ -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"