mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Move a support TestCase out of the main namespace in unittest.test.test_suite
This commit is contained in:
parent
95ac82bfc6
commit
ee627883a7
1 changed files with 7 additions and 7 deletions
|
@ -6,15 +6,15 @@ from .support import LoggingResult, TestEquality
|
|||
### Support code for Test_TestSuite
|
||||
################################################################
|
||||
|
||||
# This will be loaded as a test - problem?
|
||||
class Foo(unittest.TestCase):
|
||||
def test_1(self): pass
|
||||
def test_2(self): pass
|
||||
def test_3(self): pass
|
||||
def runTest(self): pass
|
||||
class Test(object):
|
||||
class Foo(unittest.TestCase):
|
||||
def test_1(self): pass
|
||||
def test_2(self): pass
|
||||
def test_3(self): pass
|
||||
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…
Add table
Add a link
Reference in a new issue