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

Method testIntern

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

Source from the content-addressed store, hash-verified

620
621 @unittest.expectedFailure # TODO: RUSTPYTHON
622 def testIntern(self):
623 s = marshal.loads(marshal.dumps(self.strobj))
624 self.assertEqual(s, self.strobj)
625 self.assertEqual(id(s), id(self.strobj))
626 s2 = sys.intern(s)
627 self.assertEqual(id(s2), id(s))
628
629 def testNoIntern(self):
630 s = marshal.loads(marshal.dumps(self.strobj, 2))

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected