Michael Foord | 2560e5c | 2010-03-27 12:34:21 +0000 | [diff] [blame] | 1 | import unittest.test |
Jim Fulton | fafd874 | 2004-08-28 15:22:12 +0000 | [diff] [blame] | 2 | |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 3 | from test import support |
Benjamin Peterson | 847a411 | 2010-03-14 15:04:17 +0000 | [diff] [blame] | 4 | |
Jim Fulton | fafd874 | 2004-08-28 15:22:12 +0000 | [diff] [blame] | 5 | |
6 | def test_main(): | ||||
Michael Foord | add7cbf | 2010-12-03 19:20:44 +0000 | [diff] [blame] | 7 | # used by regrtest |
Michael Foord | bf1fab4 | 2010-03-27 13:45:04 +0000 | [diff] [blame] | 8 | support.run_unittest(unittest.test.suite()) |
Michael Foord | 2560e5c | 2010-03-27 12:34:21 +0000 | [diff] [blame] | 9 | support.reap_children() |
10 | |||||
Michael Foord | add7cbf | 2010-12-03 19:20:44 +0000 | [diff] [blame] | 11 | def load_tests(*_): |
12 | # used by unittest | ||||
13 | return unittest.test.suite() | ||||
14 | |||||
Guido van Rossum | d8faa36 | 2007-04-27 19:54:29 +0000 | [diff] [blame] | 15 | if __name__ == "__main__": |
Jim Fulton | fafd874 | 2004-08-28 15:22:12 +0000 | [diff] [blame] | 16 | test_main() |