()
| 234 | |
| 235 | |
| 236 | def test_pandas_priority(): |
| 237 | # GH#48347 |
| 238 | |
| 239 | class MyClass: |
| 240 | __pandas_priority__ = 5000 |
| 241 | |
| 242 | def __radd__(self, other): |
| 243 | return self |
| 244 | |
| 245 | left = MyClass() |
| 246 | right = Series(range(3)) |
| 247 | |
| 248 | assert right.__add__(left) is NotImplemented |
| 249 | assert right + left is left |
| 250 | |
| 251 | |
| 252 | @pytest.mark.parametrize("dtype", ["M8[ns]", "m8[ns]"]) |