test_compare_images: Fix errors on Python 2.6 because assert_is_none is not available.