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

update test_as_int in test_compatibility.py
OK, I see that you deccided to return Float versions of oo and -oo. I guess that makes sense. So this change needs four tests, too, similar to the ones you added for `as_int`.