[issue1955] fix using unittest as a superclass

2008-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: This patch seems to be based upon a misunderstanding of how Python namespaces work. -- keywords: +patch nosy: +gvanrossum resolution: -> rejected status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1955] fix using unittest as a superclass

2008-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't really understand what problem you are trying to solve. Can you attach a sample script to show it more clearly? Also, the only thing your patch does is rename Test(Case|Suite) references to unittest.Test(Case|Suite)... I doubt it would have any effect un

[issue1955] fix using unittest as a superclass

2008-01-28 Thread Adam Goucher
New submission from Adam Goucher: There are a couple places in unittest where 'issubclass(something, TestCase)' is used. This prevents you from organizing your test code via class hierarchies. To solve this problem, issubclass should be looking whether the object is a subclass of unittest.TestCas