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

Function assert_equal

vispy/testing/_testing.py:98–103  ·  view source on GitHub ↗

Backport

(x, y, msg=None)

Source from the content-addressed store, hash-verified

96
97
98def assert_equal(x, y, msg=None):
99 """Backport"""
100 if x == y:
101 return
102 std_msg = '%s not equal to %s' % (_safe_rep(x), _safe_rep(y))
103 raise AssertionError(_format_msg(msg, std_msg))
104
105
106def assert_not_equal(x, y, msg=None):

Callers 15

test_wavefrontFunction · 0.90
test_applicationFunction · 0.90
test_fsFunction · 0.90
test_close_keysFunction · 0.90
test_event_orderFunction · 0.90
test_colorFunction · 0.90
test_color_conversionFunction · 0.90
test_TextExpressionFunction · 0.90
test_FunctionCallFunction · 0.90
test_VariableFunction · 0.90
test_function_basicsFunction · 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…