FIX issue#8147 Recursion depth exceeded in as_int(Rational(0, 0))

update test_as_int in test_compatibility.py
-S.Infinity should be spelled S.NegativeInfinity

Add spaces after commas, then `git commit -am ok; git reset head~4; git commit -am 'your title'` to squash everything to a single commit. Then this is done, I believe.