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

Method testNoIntern

Lib/test/test_marshal.py:631–636  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

629 self.assertEqual(id(s2), id(s))
630
631 def testNoIntern(self):
632 s = marshal.loads(marshal.dumps(self.strobj, 2))
633 self.assertEqual(s, self.strobj)
634 self.assertNotEqual(id(s), id(self.strobj))
635 s2 = sys.intern(s)
636 self.assertNotEqual(id(s2), id(s))
637
638class SliceTestCase(unittest.TestCase, HelperMixin):
639 def test_slice(self):

Callers

nothing calls this directly

Calls 6

idFunction · 0.85
assertNotEqualMethod · 0.80
internMethod · 0.80
loadsMethod · 0.45
dumpsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected