Skip to content
Snippets Groups Projects
Commit ae52b1b6 authored by spiglerg's avatar spiglerg
Browse files

reverted to previous code

parent d4c8a832
No related branches found
No related tags found
No related merge requests found
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment