MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_raw_unicode

Function test_raw_unicode

tests_python/test_safe_repr.py:638–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

636
637
638def test_raw_unicode():
639 safe_repr = SafeRepr()
640 safe_repr.raw_value = True
641 obj = "\xed\xbd\xbf\xff\xfe\xfa\xfd"
642 raw_value_repr = safe_repr(obj)
643 assert isinstance(raw_value_repr, str) # bytes on py2, str on py3
644 assert raw_value_repr == obj
645
646
647def test_no_repr():

Callers

nothing calls this directly

Calls 1

SafeReprClass · 0.90

Tested by

no test coverage detected