mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Second test is meant to have two XDIMs (#728). Also use lowercase for parameters.
This commit is contained in:
parent
5993b97cb0
commit
d391390e3f
|
@ -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__':
|
||||
|
|
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user