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

update test_as_int in test_compatibility.py
we leave 2 lines between functions; please restore that line and give a descriptive title to the single commit. This, then, will be ready to go.