diff --git a/django/test/testcases.py b/django/test/testcases.py
index 85ff66a..6980fa2 100644
a
|
b
|
class LiveServerThread(threading.Thread):
|
1112 | 1112 | self.error = e |
1113 | 1113 | self.is_ready.set() |
1114 | 1114 | |
| 1115 | if not self.connections_override: |
| 1116 | # This thread has its own connections which will not get closed |
| 1117 | # during testcase teardown. |
| 1118 | for conn in connections.all(): |
| 1119 | conn.close() |
| 1120 | |
1115 | 1121 | def join(self, timeout=None): |
1116 | 1122 | if hasattr(self, 'httpd'): |
1117 | 1123 | # Stop the WSGI server |