()
| 818 | |
| 819 | |
| 820 | def test_staticmethods(): |
| 821 | a, b, c = HasStaticMethods(1), HasStaticMethods(2), HasStaticMethods2(1) |
| 822 | # These invoke HasStaticMethods.__dask_tokenize__() |
| 823 | assert check_tokenize(a.normal_method) != check_tokenize(b.normal_method) |
| 824 | assert check_tokenize(a.normal_method) != check_tokenize(c.normal_method) |
| 825 | # These don't |
| 826 | assert check_tokenize(a.static_method) == check_tokenize(b.static_method) |
| 827 | assert check_tokenize(a.static_method) == check_tokenize(c.static_method) |
| 828 | assert check_tokenize(a.class_method) == check_tokenize(b.class_method) |
| 829 | assert check_tokenize(a.class_method) != check_tokenize(c.class_method) |
| 830 | |
| 831 | |
| 832 | def test_tokenize_sequences(): |
nothing calls this directly
no test coverage detected