python-mapnik
python-mapnik copied to clipboard
pgraster failing tests with mapnik v3.0.15
This is the test output for pgraster tests and mapnik v3.0.15:
~/projects/python-mapnik[v3.0.x-mason]$ python test/python_tests/pgraster_test.py
✘ test_data_16bsi_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_16bsi_subquery-16BSI-135-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 700, in test_data_16bsi_subquery
_test_data_subquery('data_16bsi_subquery', '16BSI', 135)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_16bui_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_16bui_subquery-16BUI-126-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 695, in test_data_16bui_subquery
_test_data_subquery('data_16bui_subquery', '16BUI', 126)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_2bui_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_2bui_subquery-2BUI-3-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 681, in test_data_2bui_subquery
_test_data_subquery('data_2bui_subquery', '2BUI', 3)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_32bf_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_32bf_subquery-32BF-450-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 711, in test_data_32bf_subquery
_test_data_subquery('data_32bf_subquery', '32BF', 450)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_32bsi_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_32bsi_subquery-32BSI-264-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 708, in test_data_32bsi_subquery
_test_data_subquery('data_32bsi_subquery', '32BSI', 264)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_32bui_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_32bui_subquery-32BUI-255-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 703, in test_data_32bui_subquery
_test_data_subquery('data_32bui_subquery', '32BUI', 255)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_4bui_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_4bui_subquery-4BUI-15-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 684, in test_data_4bui_subquery
_test_data_subquery('data_4bui_subquery', '4BUI', 15)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_64bf_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_64bf_subquery-64BF-3072-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 714, in test_data_64bf_subquery
_test_data_subquery('data_64bf_subquery', '64BF', 3072)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_8bsi_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_8bsi_subquery-8BSI-69-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 692, in test_data_8bsi_subquery
_test_data_subquery('data_8bsi_subquery', '8BSI', 69)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✘ test_data_8bui_subquery
AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_8bui_subquery-8BUI-63-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 687, in test_data_8bui_subquery
_test_data_subquery('data_8bui_subquery', '8BUI', 63)
File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✓ test_dataraster_16bsi
✓ test_grayscale_16bsi_subquery
✓ test_grayscale_16bui_subquery
✓ test_grayscale_2bui_subquery
✓ test_grayscale_32bsi_subquery
✓ test_grayscale_32bui_subquery
✓ test_grayscale_4bui_subquery
✓ test_grayscale_8bsi_subquery
✓ test_grayscale_8bui_subquery
✓ test_rgb_8bui
✘ test_rgba_8bui
AssertionError: images do not match, check diff at images/support/pgraster/rgba_8bui-rgba_8bui C O_2-2-0-box1-diff.png
Traceback:
File "test/python_tests/pgraster_test.py", line 386, in test_rgba_8bui
'rgba_8bui', tilesize, constraint, overview)
File "test/python_tests/pgraster_test.py", line 378, in _test_rgba_8bui
_test_rgba_8bui_rendering(lbl, overview, prescale, clip)
File "test/python_tests/pgraster_test.py", line 323, in _test_rgba_8bui_rendering
compare_images(expected, im)
File "test/python_tests/pgraster_test.py", line 151, in compare_images
assert False, 'images do not match, check diff at %s' % diff
✓ test_rgba_8bui_subquery
Here are the diff images (expected on left, actual on right):

It looks like the failures are due to 2 changes:
- backgrounds no longer being transparent
- resampling difference