MCPcopy Index your code
hub / github.com/python/cpython / assert_roundtrip_identical

Method assert_roundtrip_identical

Lib/test/test_crossinterp.py:466–471  ·  view source on GitHub ↗
(self, values, *, mode=None)

Source from the content-addressed store, hash-verified

464 return _testinternalcapi.restore_crossinterp_data(xid)
465
466 def assert_roundtrip_identical(self, values, *, mode=None):
467 mode = self._resolve_mode(mode)
468 for obj in values:
469 with self.subTest(repr(obj)):
470 got = self._get_roundtrip(obj, mode)
471 self.assertIs(got, obj)
472
473 def assert_roundtrip_equal(self, values, *, mode=None, expecttype=None):
474 mode = self._resolve_mode(mode)

Callers 5

assert_func_defs_sameMethod · 0.80
test_builtin_typeMethod · 0.80
test_singletonsMethod · 0.80

Calls 4

_resolve_modeMethod · 0.95
_get_roundtripMethod · 0.95
subTestMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected