From: Michael Foord Date: Fri, 26 Mar 2010 02:53:56 +0000 (+0000) Subject: Move a support TestCase out of the main namespace in unittest.test.test_suite X-Git-Tag: v2.7b1~202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee627883a7d57d783ccab1fb4ae1850f7c26d9b1;p=thirdparty%2FPython%2Fcpython.git Move a support TestCase out of the main namespace in unittest.test.test_suite --- diff --git a/Lib/unittest/test/test_suite.py b/Lib/unittest/test/test_suite.py index 8430e72b6357..7cd2b897679c 100644 --- a/Lib/unittest/test/test_suite.py +++ b/Lib/unittest/test/test_suite.py @@ -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) ################################################################