Skip to content

Django 3.2 setUpTestData uses copy.deepcopy()  #246

Closed
@vchrisb

Description

@vchrisb

Using setUpTestData() with django-stdimage in Django 3.2 does not work anymore, as it look like copy.deepcopy() is not supported with django-stdimage.

Changed in Django 3.2:
Objects assigned to class attributes in setUpTestData() must support creating deep copies with copy.deepcopy() in order to > isolate them from alterations performed by each test methods. In previous versions of Django these objects were reused > and changes made to them were persisted between test methods.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions