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

Function assert_not_equal

vispy/testing/_testing.py:106–111  ·  view source on GitHub ↗

Backport

(x, y, msg=None)

Source from the content-addressed store, hash-verified

104
105
106def assert_not_equal(x, y, msg=None):
107 """Backport"""
108 if x != y:
109 return
110 std_msg = '%s equal to %s' % (_safe_rep(x), _safe_rep(y))
111 raise AssertionError(_format_msg(msg, std_msg))
112
113
114def assert_not_in(member, container, msg=None):

Callers 2

test_useFunction · 0.90
test_context_configFunction · 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…