Skip to content
Permalink
Browse files

Images are now RGB rather than 8-bit when tested using Pillow

  • Loading branch information...
geographika committed Jun 27, 2018
1 parent 38d2699 commit 6ec6085647496eacb3284e93a9058ba50cbe769f
Showing with 4 additions and 4 deletions.
  1. +4 −4 mapscript/python/tests/cases/imagetest.py
@@ -63,7 +63,7 @@ def testSaveToString(self):
pyimg = Image.open(filename)
assert pyimg.format == 'PNG'
assert pyimg.size == (200, 200)
assert pyimg.mode == 'P'
assert pyimg.mode == 'RGB'
else:
assert 1

@@ -144,7 +144,7 @@ def testImageWrite(self):
pyimg = Image.open(filename)
assert pyimg.format == 'PNG'
assert pyimg.size == (200, 200)
assert pyimg.mode == 'P'
assert pyimg.mode == 'RGB'
else:
assert 1

@@ -163,7 +163,7 @@ def testImageWriteBytesIO(self):
pyimg = Image.open(filename)
assert pyimg.format == 'PNG'
assert pyimg.size == (200, 200)
assert pyimg.mode == 'P'
assert pyimg.mode == 'RGB'
else:
assert 1

@@ -181,7 +181,7 @@ def testImageGetBytes(self):
pyimg = Image.open(filename)
assert pyimg.format == 'PNG'
assert pyimg.size == (200, 200)
assert pyimg.mode == 'P'
assert pyimg.mode == 'RGB'
else:
assert 1

0 comments on commit 6ec6085

Please sign in to comment.
You can’t perform that action at this time.