diff options
| author | Tim Graham <timograham@gmail.com> | 2014-03-21 10:54:53 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-03-21 10:54:53 -0400 |
| commit | 4965a774074780f3e4858bcc975476f71edf2c2c (patch) | |
| tree | 938b3f520bf53384ca644c4e85cf737a9a466771 /tests/invalid_models_tests/test_ordinary_fields.py | |
| parent | 6d1ae5e27c3fe612209023bacd8a201fffedc375 (diff) | |
Removed PIL compatability layer per deprecation timeline.
refs #19934.
Diffstat (limited to 'tests/invalid_models_tests/test_ordinary_fields.py')
| -rw-r--r-- | tests/invalid_models_tests/test_ordinary_fields.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index 47e3d14d3f..3ad7e250b0 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -4,7 +4,6 @@ from __future__ import unicode_literals import unittest from django.core.checks import Error -from django.core.exceptions import ImproperlyConfigured from django.db import connection, models from .base import IsolatedModelsTestCase @@ -379,8 +378,8 @@ class ImageFieldTests(IsolatedModelsTestCase): def test_pillow_installed(self): try: - import django.utils.image # NOQA - except ImproperlyConfigured: + from PIL import Image # NOQA + except ImportError: pillow_installed = False else: pillow_installed = True |
