MCPcopy Create free account
hub / github.com/vispy/vispy / assert_is

Function assert_is

vispy/testing/_testing.py:122–126  ·  view source on GitHub ↗

Backport

(expr1, expr2, msg=None)

Source from the content-addressed store, hash-verified

120
121
122def assert_is(expr1, expr2, msg=None):
123 """Backport"""
124 if expr1 is not expr2:
125 std_msg = '%s is not %s' % (_safe_rep(expr1), _safe_rep(expr2))
126 raise AssertionError(_format_msg(msg, std_msg))
127
128
129class raises(object):

Callers 4

test_applicationFunction · 0.90
test_function_basicsFunction · 0.90
test_testingFunction · 0.90
test_use_desktopFunction · 0.90

Calls 2

_safe_repFunction · 0.85
_format_msgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…