MCPcopy
hub / github.com/django/django / tearDown

Method tearDown

tests/select_for_update/tests.py:56–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.new_connection = connection.copy()
55
56 def tearDown(self):
57 try:
58 self.end_blocking_transaction()
59 except (DatabaseError, AttributeError):
60 pass
61 self.new_connection.close()
62
63 def start_blocking_transaction(self):
64 self.new_connection.set_autocommit(False)

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45

Tested by

no test coverage detected