def should_skip():
    "Check if tests should be skipped due to old imagemagick version."
    min_version = (6, 8)  # minimum imagemagick version
    try:
        actual_version = get_imagemagick_version()
    except AssertionError:
        return True
    actual_version = tuple(actual_version[:2])
    return actual_version < min_version
Check if tests should be skipped due to old imagemagick version.
test/test_images2.py