SgtMook/sympy — comment on commit 3dbfe6a49eb785237e59dedceabfa5bb581e5a99
File: sympy/core/numbers.py line 1748
By asmeurer:

Should be `if other is S.Infinity or other is S.NaN`. Please write some tests for this too.