[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

Jean-Paul Calderone report at bugs.python.org
Sat Apr 10 15:13:14 CEST 2010


New submission from Jean-Paul Calderone <exarkun at divmod.com>:

There are two tests for the way inspect.classify_class_attrs handles various sorts of attributes.  The tests are identical, except one uses a classic class and one a new-style class.  The tests sources have actually begun to diverge, but so far only in whitespace.  This code will be easier to maintain (not to mention shorter) if there is just one copy of the actual test parts.

----------
assignee: exarkun
components: Library (Lib), Tests
keywords: needs review, patch
messages: 102776
nosy: exarkun
severity: normal
status: open
title: Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8363>
_______________________________________


More information about the Python-bugs-list mailing list