1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #36005 -- Dropped support for Python 3.10 and 3.11.

This commit is contained in:
Mariusz Felisiak
2025-01-17 22:09:56 +01:00
committed by Sarah Boyce
parent 61dae11df5
commit f5772de696
30 changed files with 79 additions and 266 deletions

View File

@@ -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")