(self)
| 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): |
nothing calls this directly
no test coverage detected