Second test is meant to have two XDIMs (#728). Also use lowercase for parameters.

This commit is contained in:
hugovk 2014-06-25 19:27:43 +03:00
parent 5993b97cb0
commit d391390e3f
2 changed files with 6 additions and 6 deletions

View File

@ -20,9 +20,9 @@ XDIM = 48000
class LargeMemoryNumpyTest(PillowTestCase):
def _write_png(self, XDIM, YDIM):
def _write_png(self, xdim, ydim):
dtype = np.uint8
a = np.zeros((XDIM, YDIM), dtype=dtype)
a = np.zeros((xdim, ydim), dtype=dtype)
f = self.tempfile('temp.png')
im = Image.fromarray(a, 'L')
im.save(f)
@ -33,7 +33,7 @@ class LargeMemoryNumpyTest(PillowTestCase):
def test_2gpx(self):
"""failed prepatch"""
self._write_png(XDIM, YDIM)
self._write_png(XDIM, XDIM)
if __name__ == '__main__':

View File

@ -16,9 +16,9 @@ XDIM = 48000
class LargeMemoryTest(PillowTestCase):
def _write_png(self, XDIM, YDIM):
def _write_png(self, xdim, ydim):
f = self.tempfile('temp.png')
im = Image.new('L', (XDIM, YDIM), (0))
im = Image.new('L', (xdim, ydim), (0))
im.save(f)
def test_large(self):
@ -27,7 +27,7 @@ class LargeMemoryTest(PillowTestCase):
def test_2gpx(self):
"""failed prepatch"""
self._write_png(XDIM, YDIM)
self._write_png(XDIM, XDIM)
if __name__ == '__main__':