Searched refs:safe_repr (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/unittest/ |
D | case.py | 14 strclass, safe_repr, unorderable_list_difference, 415 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr)) 421 msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr)) 443 return '%s : %s' % (safe_repr(standardMsg), safe_repr(msg)) 504 standardMsg = '%s != %s' % (safe_repr(first), safe_repr(second)) 520 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first), 521 safe_repr(second))) 548 standardMsg = '%s != %s within %s delta' % (safe_repr(first), 549 safe_repr(second), 550 safe_repr(delta)) [all …]
|
D | util.py | 8 def safe_repr(obj, short=False): function
|
/external/python/cpython3/Lib/unittest/ |
D | case.py | 15 from .util import (strclass, safe_repr, _count_diff_all_purpose, 685 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr)) 691 msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr)) 713 return '%s : %s' % (safe_repr(standardMsg), safe_repr(msg)) 846 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first), 847 safe_repr(second))) 876 safe_repr(first), 877 safe_repr(second), 878 safe_repr(delta), 879 safe_repr(diff)) [all …]
|
D | util.py | 25 args = tuple(map(safe_repr, args)) 45 def safe_repr(obj, short=False): function
|