From ee627883a7d57d783ccab1fb4ae1850f7c26d9b1 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Fri, 26 Mar 2010 02:53:56 +0000 Subject: [PATCH] Move a support TestCase out of the main namespace in unittest.test.test_suite --- Lib/unittest/test/test_suite.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/unittest/test/test_suite.py b/Lib/unittest/test/test_suite.py index 8430e72b635..7cd2b897679 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) ################################################################