Skip to content

Commit 7674144

Browse files
committed
Be nicer with __closable_objects.
1 parent f5e5ed0 commit 7674144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_renderers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,8 @@ def http_resp(self, http_method, url):
646646
"""
647647
method = getattr(self.client, http_method)
648648
resp = method(url)
649-
del resp.client, resp.request, resp._closable_objects
649+
resp._closable_objects = []
650+
del resp.client, resp.request
650651
try:
651652
del resp.wsgi_request
652653
except AttributeError:

0 commit comments

Comments
 (0)