fixing deferring the rgba tests, whitespace

This commit is contained in:
wiredfool 2013-05-13 22:21:52 -07:00
parent 21e3fd2eb7
commit 94239540db
2 changed files with 24 additions and 21 deletions

View File

@ -78,6 +78,9 @@ def test_write_rgba():
pil_image = Image.new("RGBA", (10, 10), (255, 0, 0, 20))
pil_image.save(temp_file)
if _webp.WebPDecoderBuggyAlpha():
return
image = Image.open(temp_file)
image.load()

View File

@ -162,11 +162,11 @@ PyObject* WebPDecoderVersion_wrapper(PyObject* self, PyObject* args){
}
/*
* The version of webp that ships with (0.1.2) Ubuntu 12.04 doesn't handle alpha well.
* The version of webp that ships with (0.1.3) Ubuntu 12.04 doesn't handle alpha well.
* Files that are valid with 0.3 are reported as being invalid.
*/
PyObject* WebPDecoderBuggyAlpha_wrapper(PyObject* self, PyObject* args){
return Py_BuildValue("i", WebPGetDecoderVersion()==0x0102);
return Py_BuildValue("i", WebPGetDecoderVersion()==0x0103);
}
static PyMethodDef webpMethods[] =