From 0646068efaa0882b4aeef5779497767f18e09649 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Wed, 18 Jul 2018 15:31:01 +0100
Subject: [PATCH] TEST: Some pytest configurations complain about pytest.raises
 arguments not being errors.

---
 tests/test_image.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/test_image.py b/tests/test_image.py
index 34380c802..47a6ad4ce 100644
--- a/tests/test_image.py
+++ b/tests/test_image.py
@@ -39,8 +39,12 @@ except ImportError:
 try:
     import indexed_gzip as igzip
 except ImportError:
+
+    class MockError(Exception):
+        pass
+
     igzip           = mock.MagicMock()
-    igzip.ZranError = mock.MagicMock()
+    igzip.ZranError = MockError
 
 
 def make_image(filename=None,
-- 
GitLab