Move a support TestCase out of the main namespace in unittest.test.test_suite
This commit is contained in:
parent
95ac82bfc6
commit
ee627883a7
|
@ -6,7 +6,7 @@ from .support import LoggingResult, TestEquality
|
|||
### Support code for Test_TestSuite
|
||||
################################################################
|
||||
|
||||
# This will be loaded as a test - problem?
|
||||
class Test(object):
|
||||
class Foo(unittest.TestCase):
|
||||
def test_1(self): pass
|
||||
def test_2(self): pass
|
||||
|
@ -14,7 +14,7 @@ class Foo(unittest.TestCase):
|
|||
def runTest(self): pass
|
||||
|
||||
def _mk_TestSuite(*names):
|
||||
return unittest.TestSuite(Foo(n) for n in names)
|
||||
return unittest.TestSuite(Test.Foo(n) for n in names)
|
||||
|
||||
################################################################
|
||||
|
||||
|
|
Loading…
Reference in New Issue