MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _teardown_connections

Method _teardown_connections

pymysql/tests/base.py:82–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 return conn
81
82 def _teardown_connections(self):
83 if self._connections:
84 for connection in self._connections:
85 if connection.open:
86 connection.close()
87 self._connections = None
88
89 def safe_create_table(self, connection, tablename, ddl, cleanup=True):
90 """create a table.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected