Ticket #8187: patch-8185-vs-r8255.diff
File patch-8185-vs-r8255.diff, 1.2 KB (added by , 16 years ago) |
---|
-
tests/modeltests/model_forms/models.py
75 75 # Checking for the existence of Image is enough for CPython, but 76 76 # for PyPy, you need to check for the underlying modules 77 77 # If PIL is not available, this test is equivalent to TextFile above. 78 import Image, _imaging78 from PIL import Image, _imaging 79 79 image = models.ImageField(storage=temp_storage, upload_to='tests') 80 80 except ImportError: 81 81 image = models.FileField(storage=temp_storage, upload_to='tests') -
tests/regressiontests/file_storage/models.py
12 12 try: 13 13 # Checking for the existence of Image is enough for CPython, but 14 14 # for PyPy, you need to check for the underlying modules 15 import Image, _imaging15 from PIL import Image, _imaging 16 16 except ImportError: 17 17 Image = None 18 18