Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ expect_raises
Function
expect_raises
lib/sqlalchemy/testing/assertions.py:501–502 ·
view source on GitHub ↗
(except_cls, check_context=True)
Source
from the content-addressed store, hash-verified
499
500
501
def
expect_raises(except_cls, check_context=True):
502
return
_expect_raises(except_cls, check_context=check_context)
503
504
505
def
expect_raises_message(except_cls, msg, check_context=True):
Callers
15
test_row_keys_removed
Method · 0.90
test_row_precedence_normal_names
Method · 0.90
test_rejects_unique_filter
Method · 0.90
test_rejects_post_creational_filter
Method · 0.90
test_rejects_scalar_source
Method · 0.90
test_returning_integrity_error
Method · 0.90
test_failure_mode_if_i_dont_send_value
Method · 0.90
test_deduping_hash_algo
Method · 0.90
test_duplicate_values_accepted
Method · 0.90
test_timeout_subsecond_precision
Method · 0.90
test_conn_reusable
Method · 0.90
test_reconnect
Method · 0.90
Calls
1
_expect_raises
Function · 0.85
Tested by
15
test_row_keys_removed
Method · 0.72
test_row_precedence_normal_names
Method · 0.72
test_rejects_unique_filter
Method · 0.72
test_rejects_post_creational_filter
Method · 0.72
test_rejects_scalar_source
Method · 0.72
test_returning_integrity_error
Method · 0.72
test_failure_mode_if_i_dont_send_value
Method · 0.72
test_deduping_hash_algo
Method · 0.72
test_duplicate_values_accepted
Method · 0.72
test_timeout_subsecond_precision
Method · 0.72
test_conn_reusable
Method · 0.72
test_reconnect
Method · 0.72