Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14520 -- fixed a memory leak when running the test suite.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9d5d757bda5b83e9867ea695f1dd2ccde9aed1ed 1 parent 5864834
@alex alex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/test/testcases.py
View
2  django/test/testcases.py
@@ -222,10 +222,10 @@ def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
+ self.connection.use_debug_cursor = self.old_debug_cursor
if exc_type is not None:
return
- self.connection.use_debug_cursor = self.old_debug_cursor
final_queries = len(self.connection.queries)
executed = final_queries - self.starting_queries
Please sign in to comment.
Something went wrong with that request. Please try again.