From d53d6f82cbde0e45779146da2bcfbc0865e0eaca Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 9 Jul 2019 14:47:24 +0200 Subject: [PATCH] storage: fix incomatibility with new pytest --- storage/tests/python/tests/test_norcow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/tests/python/tests/test_norcow.py b/storage/tests/python/tests/test_norcow.py index 38b9369c8..30c5f797a 100644 --- a/storage/tests/python/tests/test_norcow.py +++ b/storage/tests/python/tests/test_norcow.py @@ -50,7 +50,7 @@ def test_norcow_read_item(): with pytest.raises(ValueError) as e: key, value = n._read_item(204) - assert "no data" in str(e) + assert "no data" in str(e.value) def test_norcow_get_item(): @@ -122,7 +122,7 @@ def test_norcow_replace_item(): with pytest.raises(RuntimeError) as e: n.replace(0x0001, b"00000") - assert "same length" in str(e) + assert "same length" in str(e.value) def test_norcow_compact():