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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user