diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-01-17 22:09:56 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-20 14:07:28 +0100 |
| commit | f5772de69679efb54129ac1cbca3579b512778af (patch) | |
| tree | ab215760e2e77124bbb8970b0913c2a99ae68743 /tests/model_fields | |
| parent | 61dae11df52fae71fc3050974ac459f362c9dfd7 (diff) | |
Fixed #36005 -- Dropped support for Python 3.10 and 3.11.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_filefield.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/model_fields/test_filefield.py b/tests/model_fields/test_filefield.py index 478e9edd36..57cc7365da 100644 --- a/tests/model_fields/test_filefield.py +++ b/tests/model_fields/test_filefield.py @@ -12,7 +12,6 @@ from django.core.files.uploadedfile import TemporaryUploadedFile from django.db import IntegrityError, models from django.test import TestCase, override_settings from django.test.utils import isolate_apps -from django.utils.version import PY311 from .models import Document @@ -80,10 +79,9 @@ class FileFieldTests(TestCase): with self.assertRaisesMessage(FieldError, msg) as cm: d.save() - if PY311: - self.assertEqual( - cm.exception.__notes__, ["Pass a 'name' argument to ContentFile."] - ) + self.assertEqual( + cm.exception.__notes__, ["Pass a 'name' argument to ContentFile."] + ) def test_delete_content_file(self): file = ContentFile(b"", name="foo") |
