()
| 761 | |
| 762 | |
| 763 | def test_tokenize_callable_class(): |
| 764 | class C: |
| 765 | def __init__(self, x): |
| 766 | self.x = x |
| 767 | |
| 768 | def __call__(self): |
| 769 | return self.x |
| 770 | |
| 771 | class D(C): |
| 772 | pass |
| 773 | |
| 774 | a, b, c = C(1), C(2), D(1) |
| 775 | assert check_tokenize(a) != check_tokenize(b) |
| 776 | assert check_tokenize(a) != check_tokenize(c) |
| 777 | |
| 778 | |
| 779 | def test_tokenize_callable_class_with_tokenize_method(): |
nothing calls this directly
no test coverage detected