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

Method assert_roundtrip_not_equal

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

Source from the content-addressed store, hash-verified

493 self.assert_equal_or_equalish(got, obj)
494
495 def assert_roundtrip_not_equal(self, values, *,
496 mode=None, expecttype=None):
497 mode = self._resolve_mode(mode)
498 for obj in values:
499 with self.subTest(repr(obj)):
500 got = self._get_roundtrip(obj, mode)
501 self.assertIsNot(got, obj)
502 self.assertIs(type(got),
503 type(obj) if expecttype is None else expecttype)
504 self.assertNotEqual(got, obj)
505
506 def assert_not_shareable(self, values, exctype=None, *, mode=None):
507 mode = self._resolve_mode(mode)

Callers 5

test_valid_strMethod · 0.80
test_valid_bytesMethod · 0.80
test_not_shareableMethod · 0.80

Calls 6

_resolve_modeMethod · 0.95
_get_roundtripMethod · 0.95
assertIsNotMethod · 0.80
assertNotEqualMethod · 0.80
subTestMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected