(self)
| 623 | self.assertEqual(r(list()), "not builtins.list") |
| 624 | |
| 625 | def test_custom_repr(self): |
| 626 | class MyRepr(Repr): |
| 627 | |
| 628 | def repr_TextIOWrapper(self, obj, level): |
| 629 | if obj.name in {'<stdin>', '<stdout>', '<stderr>'}: |
| 630 | return obj.name |
| 631 | return repr(obj) |
| 632 | |
| 633 | aRepr = MyRepr() |
| 634 | self.assertEqual(aRepr.repr(sys.stdin), "<stdin>") |
| 635 | |
| 636 | def test_custom_repr_class_with_spaces(self): |
| 637 | class TypeWithSpaces: |
nothing calls this directly
no test coverage detected