[Patches] [ python-Patches-1388073 ] Make unittest.TestCase easier to subclass
SourceForge.net
noreply at sourceforge.net
Thu Dec 22 15:56:47 CET 2005
Patches item #1388073, was opened at 2005-12-22 09:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1388073&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Collin Winter (collinwinter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make unittest.TestCase easier to subclass
Initial Comment:
While working on a subclass of unittest.TestCase to
support TODO-tests, I found a large number of
__-prefixed attributes in TestCase. The presence of
these attributes (and methods) meant that I had to copy
them over to my new subclass to make python happy.
The attached patch converts these __-prefixed
attributes to _-prefixed attributes, making it much
simpler to subclass TestCase. The patch is against
unittest.py from SVN revision 41775.
Also attached are "before" and "after" versions of my
subclass showing the impact of the patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1388073&group_id=5470
More information about the Patches
mailing list