Move a support TestCase out of the main namespace in unittest.test.test_suite

This commit is contained in:
Michael Foord 2010-03-26 02:53:56 +00:00
parent 95ac82bfc6
commit ee627883a7
1 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ from .support import LoggingResult, TestEquality
### Support code for Test_TestSuite ### Support code for Test_TestSuite
################################################################ ################################################################
# This will be loaded as a test - problem? class Test(object):
class Foo(unittest.TestCase): class Foo(unittest.TestCase):
def test_1(self): pass def test_1(self): pass
def test_2(self): pass def test_2(self): pass
@ -14,7 +14,7 @@ class Foo(unittest.TestCase):
def runTest(self): pass def runTest(self): pass
def _mk_TestSuite(*names): def _mk_TestSuite(*names):
return unittest.TestSuite(Foo(n) for n in names) return unittest.TestSuite(Test.Foo(n) for n in names)
################################################################ ################################################################