Re: [Pyunit-interest] Feature Request: Make TestCase a new-style class
Brought to you by:
purcell
From: Steve P. <ste...@ya...> - 2002-07-18 07:17:20
|
Hi again Jim, Excellent suggestion. I shall make it so. Best wishes, -Steve Jim Fulton wrote: > > I typically write unit test base classes for interfaces and then > mix these base classes into test cases for implementations of the > interfaces. I'd like to use the Python 2.2 super function to make > sure that all of my setUp and tearDown methods get called, but I can't > do that because TestCase is a classic class. > > I propose adding: > > __metaclass__ = type > > to the top of unittest.py to make sure that all of the unittest > classes are new-style classes for Python 2.2 and higher. > > Jim |