mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Removed str() conversion of type and method __name__.
This commit is contained in:
@@ -82,8 +82,7 @@ class PickleabilityTestCase(TestCase):
|
||||
def test_model_pickle_dynamic(self):
|
||||
class Meta:
|
||||
proxy = True
|
||||
dynclass = type(str("DynamicEventSubclass"), (Event, ),
|
||||
{'Meta': Meta, '__module__': Event.__module__})
|
||||
dynclass = type("DynamicEventSubclass", (Event, ), {'Meta': Meta, '__module__': Event.__module__})
|
||||
original = dynclass(pk=1)
|
||||
dumped = pickle.dumps(original)
|
||||
reloaded = pickle.loads(dumped)
|
||||
|
||||
Reference in New Issue
Block a user