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