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