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

Method test_stripid

Lib/test/test_pydoc/test_pydoc.py:546–557  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

544 self.assertEqual(expected, result)
545
546 def test_stripid(self):
547 # test with strings, other implementations might have different repr()
548 stripid = pydoc.stripid
549 # strip the id
550 self.assertEqual(stripid('<function stripid at 0x88dcee4>'),
551 '<function stripid>')
552 self.assertEqual(stripid('<function stripid at 0x01F65390>'),
553 '<function stripid>')
554 # nothing to strip, return the same text
555 self.assertEqual(stripid('42'), '42')
556 self.assertEqual(stripid("<type 'exceptions.Exception'>"),
557 "<type 'exceptions.Exception'>")
558
559 @unittest.skip("TODO: RUSTPYTHON; Panic")
560 def test_builtin_with_more_than_four_children(self):

Callers

nothing calls this directly

Calls 2

stripidFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected