Removed warning handling that should have been removed in refs #23891.

This commit is contained in:
Tim Graham 2015-01-06 18:33:55 -05:00
parent 0cdb09d489
commit 749d23251b
1 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import os import os
import tempfile import tempfile
import uuid import uuid
import warnings
try: try:
from PIL import Image from PIL import Image
@ -12,7 +11,6 @@ from django.core.files.storage import FileSystemStorage
from django.db import models from django.db import models
from django.db.models.fields.files import ImageFieldFile, ImageField from django.db.models.fields.files import ImageFieldFile, ImageField
from django.utils import six from django.utils import six
from django.utils.deprecation import RemovedInDjango19Warning
class Foo(models.Model): class Foo(models.Model):
@ -161,9 +159,7 @@ class VerboseNameField(models.Model):
# Don't want to depend on Pillow in this test # Don't want to depend on Pillow in this test
#field_image = models.ImageField("verbose field") #field_image = models.ImageField("verbose field")
field12 = models.IntegerField("verbose field12") field12 = models.IntegerField("verbose field12")
with warnings.catch_warnings(): field13 = models.IPAddressField("verbose field13")
warnings.simplefilter("ignore", category=RemovedInDjango19Warning)
field13 = models.IPAddressField("verbose field13")
field14 = models.GenericIPAddressField("verbose field14", protocol="ipv4") field14 = models.GenericIPAddressField("verbose field14", protocol="ipv4")
field15 = models.NullBooleanField("verbose field15") field15 = models.NullBooleanField("verbose field15")
field16 = models.PositiveIntegerField("verbose field16") field16 = models.PositiveIntegerField("verbose field16")