[Python-checkins] r79436 - python/trunk/Lib/unittest/test/test_suite.py
michael.foord
python-checkins at python.org
Fri Mar 26 03:53:56 CET 2010
Author: michael.foord
Date: Fri Mar 26 03:53:56 2010
New Revision: 79436
Log:
Move a support TestCase out of the main namespace in unittest.test.test_suite
Modified:
python/trunk/Lib/unittest/test/test_suite.py
Modified: python/trunk/Lib/unittest/test/test_suite.py
==============================================================================
--- python/trunk/Lib/unittest/test/test_suite.py (original)
+++ python/trunk/Lib/unittest/test/test_suite.py Fri Mar 26 03:53:56 2010
@@ -6,15 +6,15 @@
### 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)
################################################################
More information about the Python-checkins
mailing list