[New-bugs-announce] [issue22495] merge large parts of test_binop.py and test_fractions.py
report at bugs.python.org
Thu Sep 25 14:27:44 CEST 2014
New submission from Wolfgang Maier:
test_binop.py says that it tests binary operators on subtypes of built-in types, but in fact largely focuses on testing its own class Rat, which simply inherits from object and is, essentially, just a simple implementation of fractions.Fraction.
Instead of doing mostly redundant tests here and there it might be better to merge this part (up to line 305) of test_binop.py into test_fractions.py, then maybe add tests of subtypes of built-in types other than just object to test_binop.py.
This requires quite a bit of work though for a relatively minor improvement so do you think it's worth the effort ?
title: merge large parts of test_binop.py and test_fractions.py
versions: Python 3.5
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce