mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
parent
6d1ae5e27c
commit
4965a77407
15 changed files with 48 additions and 211 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue