mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Standardize behavior: create a single suite merging all test cases.
This commit is contained in:
parent
7e8fdba01c
commit
2e8bba5c21
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue