MCPcopy Index your code
hub / github.com/RustPython/RustPython / testNoIntern

Method testNoIntern

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

Source from the content-addressed store, hash-verified

627 self.assertEqual(id(s2), id(s))
628
629 def testNoIntern(self):
630 s = marshal.loads(marshal.dumps(self.strobj, 2))
631 self.assertEqual(s, self.strobj)
632 self.assertNotEqual(id(s), id(self.strobj))
633 s2 = sys.intern(s)
634 self.assertNotEqual(id(s2), id(s))
635
636class SliceTestCase(unittest.TestCase, HelperMixin):
637 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