MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_db_error_keyboard_interrupt

Method test_db_error_keyboard_interrupt

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

Source from the content-addressed store, hash-verified

392 self.assert_(e.__class__ is not sa_exceptions.IntegrityError)
393
394 def test_db_error_keyboard_interrupt(self):
395 try:
396 raise sa_exceptions.DBAPIError.instance(
397 "", [], KeyboardInterrupt(), DatabaseError
398 )
399 except sa_exceptions.DBAPIError:
400 self.assert_(False)
401 except KeyboardInterrupt:
402 self.assert_(True)
403
404 def test_db_error_system_exit(self):
405 try:

Callers

nothing calls this directly

Calls 2

instanceMethod · 0.80
assert_Method · 0.45

Tested by

no test coverage detected