Fixed typos

This commit is contained in:
Andrew Murray 2016-10-02 21:31:53 +11:00
parent e6d9f31411
commit 4c28926da3
3 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ class TestFilePng(PillowTestCase):
im = im.convert("RGBA") im = im.convert("RGBA")
self.assert_image(im, "RGBA", (162, 150)) self.assert_image(im, "RGBA", (162, 150))
# image has 124 uniqe qlpha values # image has 124 unique alpha values
self.assertEqual(len(im.split()[3].getcolors()), 124) self.assertEqual(len(im.split()[3].getcolors()), 124)
def test_load_transparent_rgb(self): def test_load_transparent_rgb(self):

View File

@ -78,7 +78,7 @@ class TestImageGetPixel(AccessTest):
im.getpixel((0, 0)), c, im.getpixel((0, 0)), c,
"put/getpixel roundtrip failed for mode %s, color %s" % (mode, c)) "put/getpixel roundtrip failed for mode %s, color %s" % (mode, c))
# check inital color # check initial color
im = Image.new(mode, (1, 1), c) im = Image.new(mode, (1, 1), c)
self.assertEqual( self.assertEqual(
im.getpixel((0, 0)), c, im.getpixel((0, 0)), c,

View File

@ -64,7 +64,7 @@ ImagingZipEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
return -1; return -1;
} }
/* Initalise filter buffers */ /* Initialise filter buffers */
state->buffer[0] = 0; state->buffer[0] = 0;
context->prior[0] = 1; context->prior[0] = 1;
context->up[0] = 2; context->up[0] = 2;