MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / test_rollback

Method test_rollback

tests/dbapi20.py:232–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230 con.close()
231
232 def test_rollback(self):
233 con = self._connect()
234 # If rollback is defined, it should either work or throw
235 # the documented exception
236 if hasattr(con,'rollback'):
237 try:
238 con.rollback()
239 except self.driver.NotSupportedError:
240 pass
241
242 def test_cursor(self):
243 con = self._connect()

Callers

nothing calls this directly

Calls 1

_connectMethod · 0.95

Tested by

no test coverage detected