MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / test_rollback

Method test_rollback

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

Source from the content-addressed store, hash-verified

214 con.close()
215
216 def test_rollback(self):
217 con = self._connect()
218 # If rollback is defined, it should either work or throw
219 # the documented exception
220 if hasattr(con, "rollback"):
221 try:
222 con.rollback()
223 except self.driver.NotSupportedError:
224 pass
225
226 def test_cursor(self):
227 con = self._connect()

Callers

nothing calls this directly

Calls 1

_connectMethod · 0.95

Tested by

no test coverage detected