Commit ee627883 authored by Michael Foord's avatar Michael Foord

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

parent 95ac82bf
...@@ -6,15 +6,15 @@ from .support import LoggingResult, TestEquality ...@@ -6,15 +6,15 @@ 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
def test_3(self): pass def test_3(self): pass
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)
################################################################ ################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment