[Pyunit-interest] Feature Request: Make TestCase a new-style class
Brought to you by:
purcell
From: Jim F. <ji...@zo...> - 2002-07-08 18:36:08
|
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 -- Jim Fulton mailto:ji...@zo... Python Powered! CTO (888) 344-4332 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org |