MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / real_warn

Function real_warn

lib/sqlalchemy/testing/assertions.py:209–213  ·  view source on GitHub ↗
(msg, *arg, **kw)

Source from the content-addressed store, hash-verified

207 if raise_on_any_unexpected:
208
209 def real_warn(msg, *arg, **kw):
210 if isinstance(msg, sa_exc.SATestSuiteWarning):
211 warnings.warn(msg, *arg, **kw)
212 else:
213 raise AssertionError("Got unexpected warning: %r" % msg)
214
215 else:
216 real_warn = warnings.warn

Callers 1

our_warnFunction · 0.85

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected