diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-26 02:53:56 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-26 02:53:56 (GMT) |
commit | ee627883a7d57d783ccab1fb4ae1850f7c26d9b1 (patch) | |
tree | b48ab275748bb1587eca87bb4e6a28379586abee /Lib/unittest | |
parent | 95ac82bfc67e7062aacfc4febe9d726707963ac7 (diff) | |
download | cpython-ee627883a7d57d783ccab1fb4ae1850f7c26d9b1.zip cpython-ee627883a7d57d783ccab1fb4ae1850f7c26d9b1.tar.gz cpython-ee627883a7d57d783ccab1fb4ae1850f7c26d9b1.tar.bz2 |
Move a support TestCase out of the main namespace in unittest.test.test_suite
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/test/test_suite.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/unittest/test/test_suite.py b/Lib/unittest/test/test_suite.py index 8430e72..7cd2b89 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) ################################################################ |