summaryrefslogtreecommitdiff
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-22 19:40:33 +0000
committerGuido van Rossum <guido@python.org>2002-08-22 19:40:33 +0000
commit2e8bba5c2135e58dc2f32ff1062c39415bb266c4 (patch)
treea65fe7c631d3911b383c22d4f0c072d5fb88b8da /Lib/test/test_os.py
parent7e8fdba01cdc1abad79a7bf0d457e610d08eb7b8 (diff)
downloadcpython-git-2e8bba5c2135e58dc2f32ff1062c39415bb266c4.tar.gz
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.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 347c4458f9..2b92255208 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()