diff options
author | Guido van Rossum <guido@python.org> | 2002-08-22 19:40:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-22 19:40:33 (GMT) |
commit | 2e8bba5c2135e58dc2f32ff1062c39415bb266c4 (patch) | |
tree | a65fe7c631d3911b383c22d4f0c072d5fb88b8da /Lib/test/test_os.py | |
parent | 7e8fdba01cdc1abad79a7bf0d457e610d08eb7b8 (diff) | |
download | cpython-2e8bba5c2135e58dc2f32ff1062c39415bb266c4.zip cpython-2e8bba5c2135e58dc2f32ff1062c39415bb266c4.tar.gz cpython-2e8bba5c2135e58dc2f32ff1062c39415bb266c4.tar.bz2 |
Standardize behavior: create a single suite merging all test cases.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 347c445..2b92255 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -9,7 +9,7 @@ import warnings warnings.filterwarnings("ignore", "tempnam", RuntimeWarning, __name__) warnings.filterwarnings("ignore", "tmpnam", RuntimeWarning, __name__) -from test.test_support import TESTFN, run_unittest +from test.test_support import TESTFN, run_suite class TemporaryFileTests(unittest.TestCase): def setUp(self): @@ -186,8 +186,10 @@ class StatAttributeTests(unittest.TestCase): pass def test_main(): - run_unittest(TemporaryFileTests) - run_unittest(StatAttributeTests) + suite = unittest.TestSuite() + suite.addTest(unittest.makeSuite(TemporaryFileTests)) + suite.addTest(unittest.makeSuite(StatAttributeTests)) + run_suite(suite) if __name__ == "__main__": test_main() |