| 2518 | assert_raises(TypeError, operator.truediv, a, "abc") |
| 2519 | |
| 2520 | class MyClass: |
| 2521 | __array_priority__ = a.__array_priority__ + 1 |
| 2522 | |
| 2523 | def __mul__(self, other): |
| 2524 | return "My mul" |
| 2525 | |
| 2526 | def __rmul__(self, other): |
| 2527 | return "My rmul" |
| 2528 | |
| 2529 | me = MyClass() |
| 2530 | assert_(me * a == "My mul") |
no outgoing calls