MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_db_error_normal

Method test_db_error_normal

test/base/test_except.py:67–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 return d
66
67 def test_db_error_normal(self):
68 try:
69 raise sa_exceptions.DBAPIError.instance(
70 "", [], OperationalError(), DatabaseError
71 )
72 except sa_exceptions.DBAPIError:
73 self.assert_(True)
74
75 def test_tostring(self):
76 try:

Callers

nothing calls this directly

Calls 3

instanceMethod · 0.80
OperationalErrorClass · 0.70
assert_Method · 0.45

Tested by

no test coverage detected