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 | |
Florent Xicluna | 3f5d146 | 2010-03-21 11:50:17 +0000 | [diff] [blame] | 8 | from test import test_support |
Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 9 | import distutils.tests |
Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 10 | |
| 11 | |
| 12 | def test_main(): |
Florent Xicluna | 3f5d146 | 2010-03-21 11:50:17 +0000 | [diff] [blame] | 13 | test_support.run_unittest(distutils.tests.test_suite()) |
| 14 | test_support.reap_children() |
Fred Drake | bb7c144 | 2004-06-15 15:49:46 +0000 | [diff] [blame] | 15 | |
| 16 | |
| 17 | if __name__ == "__main__": |
| 18 | test_main() |