From ae52b1b676c39304e199b9e7f4a33c081ac24046 Mon Sep 17 00:00:00 2001
From: spiglerg <spiglerg@gmail.com>
Date: Wed, 10 Apr 2019 11:23:14 +0200
Subject: [PATCH] reverted to previous code

---
 tests/test_rendertools.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/test_rendertools.py b/tests/test_rendertools.py
index 93452fa2..39430d67 100644
--- a/tests/test_rendertools.py
+++ b/tests/test_rendertools.py
@@ -39,11 +39,12 @@ def checkFrozenImage(sFileImage):
     bytesFrozenImage = None
     for sDir in [ "/images/", "/images/test/" ]:
         sfPath = sDirRoot + sDir + sFileImage
-        bytesImage = plt.imread(sfPath)
-        if bytesFrozenImage is None:
-            bytesFrozenImage = bytesImage
-        else:
-            assert (np.sum(np.square(bytesFrozenImage-bytesImage)))
+        with open(sfPath, "rb") as fIn:
+            bytesImage = fIn.read()
+            if bytesFrozenImage == None:
+                bytesFrozenImage = bytesImage
+            else:
+                assert(bytesFrozenImage == bytesImage)
 
 
 def test_render_env():
-- 
GitLab