MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / real_warn

Function real_warn

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

Source from the content-addressed store, hash-verified

201 if raise_on_any_unexpected:
202
203 def real_warn(msg, *arg, **kw):
204 if isinstance(msg, sa_exc.SATestSuiteWarning):
205 warnings.warn(msg, *arg, **kw)
206 else:
207 raise AssertionError("Got unexpected warning: %r" % msg)
208
209 else:
210 real_warn = warnings.warn

Callers 1

our_warnFunction · 0.85

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected