Skip to content

Use more standard __version__ rather than PILLOW_VERSION #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_openslide.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def test_read_region_bad_size(self):
# doesn't provide a way to find out how much RAM we have
@skip_if(sys.maxsize < 1 << 32, '32-bit Python')
# Also skips Pillow < 2.1.0
@skip_if(have_optimizations and not hasattr(Image, 'PILLOW_VERSION'),
# Image.PILLOW_VERSION has been replaced by Image.__version__
@skip_if(have_optimizations and not (
hasattr(Image, 'PILLOW_VERSION') or hasattr(Image, '__version__')),
'broken on PIL')
def _test_read_region_2GB(self):
self.assertEqual(
Expand Down