re-enable webp tests + update expected images after #2662
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 738 B |
|
@ -1,10 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys
|
|
||||||
import os, mapnik
|
import os, mapnik
|
||||||
from timeit import Timer, time
|
from nose.tools import raises,eq_
|
||||||
from nose.tools import *
|
|
||||||
from utilities import execution_path, run_all
|
from utilities import execution_path, run_all
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
@ -60,7 +58,7 @@ if mapnik.has_webp():
|
||||||
im = mapnik.Image(256,256)
|
im = mapnik.Image(256,256)
|
||||||
im.tostring('webp:quality=-1')
|
im.tostring('webp:quality=-1')
|
||||||
|
|
||||||
generate = False
|
generate = os.environ.get('UPDATE')
|
||||||
|
|
||||||
def test_expected_encodings():
|
def test_expected_encodings():
|
||||||
fails = []
|
fails = []
|
||||||
|
@ -151,8 +149,7 @@ if mapnik.has_webp():
|
||||||
# this will happen if libweb is old, since it cannot open images created by more recent webp
|
# this will happen if libweb is old, since it cannot open images created by more recent webp
|
||||||
print 'warning, cannot open webp expected image (your libwebp is likely too old)'
|
print 'warning, cannot open webp expected image (your libwebp is likely too old)'
|
||||||
return
|
return
|
||||||
# disabled to avoid failures on ubuntu when using old webp packages
|
eq_(t0_len,len(expected_bytes))
|
||||||
#eq_(t0_len,len(expected_bytes))
|
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
print e
|
print e
|
||||||
|
|
||||||
|
|