Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 1 | """Tests for distutils. |
| 2 | |
| 3 | The tests for distutils are defined in the distutils.tests package; |
| 4 | the test_suite() function there returns a test suite that's ready to |
| 5 | be run. |
| 6 | """ |
| 7 | |
| 8 | import distutils.tests |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 9 | import test.support |
Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 10 | |
| 11 | |
| 12 | def test_main(): |
Toshio Kuratomi | 997443c | 2020-01-27 04:08:39 -0800 | [diff] [blame^] | 13 | # used by regrtest |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 14 | test.support.run_unittest(distutils.tests.test_suite()) |
Antoine Pitrou | 1568732 | 2009-10-27 20:21:45 +0000 | [diff] [blame] | 15 | test.support.reap_children() |
Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 16 | |
| 17 | |
Toshio Kuratomi | 997443c | 2020-01-27 04:08:39 -0800 | [diff] [blame^] | 18 | def load_tests(*_): |
| 19 | # used by unittest |
| 20 | return distutils.tests.test_suite() |
| 21 | |
| 22 | |
Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 23 | if __name__ == "__main__": |
| 24 | test_main() |