diff --git a/tests/modeltests/select_for_update/tests.py b/tests/modeltests/select_for_update/tests.py
index efaffb9..e480dfb 100644
a
|
b
|
class SelectForUpdateTests(TransactionTestCase):
|
173 | 173 | status.append(e) |
174 | 174 | except Exception, e: |
175 | 175 | raise |
| 176 | finally: |
| 177 | # Different thread, different connection. This connection |
| 178 | # was used just in this thread, so close it immediately. |
| 179 | connection.close() |
176 | 180 | |
177 | 181 | @requires_threading |
178 | 182 | @skipUnlessDBFeature('has_select_for_update') |
… |
… |
class SelectForUpdateTests(TransactionTestCase):
|
244 | 248 | ) |
245 | 249 | except DatabaseError, e: |
246 | 250 | status.append(e) |
| 251 | finally: |
| 252 | # Different thread, different connection. This connection |
| 253 | # was used just in this thread, so close it immediately. |
| 254 | connection.close() |
| 255 | |
247 | 256 | status = [] |
248 | 257 | thread = threading.Thread(target=raw, kwargs={'status': status}) |
249 | 258 | thread.start() |