1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #34233 -- Used types.NoneType.

Available since Python 3.10 where it was reintroduced.
This commit is contained in:
Nick Pope
2023-01-18 16:27:23 +00:00
committed by GitHub
parent 26a395f27d
commit fd21f82aa8
9 changed files with 25 additions and 15 deletions

View File

@@ -9,6 +9,7 @@ import re
import sys
import uuid
import zoneinfo
from types import NoneType
from unittest import mock
import custom_migration_operations.more_operations
@@ -797,7 +798,7 @@ class WriterTests(SimpleTestCase):
self.assertEqual(result.keywords, value.keywords)
def test_serialize_type_none(self):
self.assertSerializedEqual(type(None))
self.assertSerializedEqual(NoneType)
def test_serialize_type_model(self):
self.assertSerializedEqual(models.Model)