diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-03 14:47:40 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:10 -0400 |
| commit | a3fe4addcb9063fc327c8609c7ebba4d531da4ce (patch) | |
| tree | 47b6944e6b292b98c90dbe873132118ad46d2fa7 /tests/forms_tests | |
| parent | 491de4f07c5018aa6f409dbc9bcf32ff631d5f2e (diff) | |
Refs #23162 -- Removed forms.Field._has_changed() method.
Per deprecation timeline.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_fields.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index a2caf7ea0c..42e7bc91f7 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -44,10 +44,9 @@ from django.forms import ( Textarea, TextInput, TimeField, TypedChoiceField, TypedMultipleChoiceField, URLField, UUIDField, ValidationError, Widget, forms, ) -from django.test import SimpleTestCase, ignore_warnings +from django.test import SimpleTestCase from django.utils import formats, six, translation from django.utils._os import upath -from django.utils.deprecation import RemovedInDjango110Warning from django.utils.duration import duration_string try: @@ -568,14 +567,11 @@ class FieldsTests(SimpleTestCase): f = DateField() self.assertRaisesMessage(ValidationError, "'Enter a valid date.'", f.clean, 'a\x00b') - @ignore_warnings(category=RemovedInDjango110Warning) # for _has_changed def test_datefield_changed(self): format = '%d/%m/%Y' f = DateField(input_formats=[format]) d = datetime.date(2007, 9, 17) self.assertFalse(f.has_changed(d, '17/09/2007')) - # Test for deprecated behavior _has_changed - self.assertFalse(f._has_changed(d, '17/09/2007')) def test_datefield_strptime(self): """Test that field.strptime doesn't raise an UnicodeEncodeError (#16123)""" |
