Commit 2e8bba5c authored by Guido van Rossum's avatar Guido van Rossum

Standardize behavior: create a single suite merging all test cases.

parent 7e8fdba0
......@@ -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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment