mirror of
https://github.com/python/cpython.git
synced 2024-12-01 11:15:56 +01:00
Standardize behavior: create a single suite merging all test cases.
This commit is contained in:
parent
7e8fdba01c
commit
2e8bba5c21
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user