]> granicus.if.org Git - python/commitdiff
Move a support TestCase out of the main namespace in unittest.test.test_suite
authorMichael Foord <fuzzyman@voidspace.org.uk>
Fri, 26 Mar 2010 02:53:56 +0000 (02:53 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Fri, 26 Mar 2010 02:53:56 +0000 (02:53 +0000)
Lib/unittest/test/test_suite.py

index 8430e72b6357b8d2a7999977ca4e5fb7329e02a6..7cd2b897679c077c632006c4bca123d7c65a64c7 100644 (file)
@@ -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)
 
 ################################################################