gh-111673: Refactor test_float/complex.py (split out support classes)
First commit mostly taken from #26827, second - some simple extension of this. @serhiy-storchaka
- Issue: gh-111673
@AlexWaygood, does this require news? I think - not.
@AlexWaygood, does this require news? I think - not.
Yeah, we can skip it for this one, good call
Will wait #111996
@sobolevn, maybe you can review this as an issue author? Let me know if it's better to split this to several pull requests.
CC @vstinner
I already proposed something similar in #84310. But it only defined classes with a single special method (__index__, __float__), which could be used in a number of tests. I am not sure that it is worth to share simple or too specialized classes like IntSubclass or WithIntAndIndex.
Ok, thanks.
I think, I haven't enough motivation to push it further.