1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #19519 again -- Regression in LiveServerTestCase after fd1279a4.

This commit is contained in:
Aymeric Augustin
2013-01-01 10:12:06 +01:00
parent 3570ff734e
commit bacb097ac3
4 changed files with 11 additions and 15 deletions

View File

@@ -641,8 +641,6 @@ class TransactionTestCase(SimpleTestCase):
else:
content = response.content
content = content.decode(response._charset)
# Avoid ResourceWarning about unclosed files.
response.close()
if html:
content = assert_and_parse_html(self, content, None,
"Response's content is not valid HTML:")