Christian Heimes | 9054000 | 2008-05-08 14:29:10 +0000 | [diff] [blame] | 1 | """Tests for json. |
| 2 | |
| 3 | The tests for json are defined in the json.tests package; |
| 4 | the test_suite() function there returns a test suite that's ready to |
| 5 | be run. |
| 6 | """ |
| 7 | |
Alexander Belopolsky | ff27ee0 | 2010-11-30 03:03:30 +0000 | [diff] [blame^] | 8 | from test import json_tests |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 9 | import test.support |
Christian Heimes | 9054000 | 2008-05-08 14:29:10 +0000 | [diff] [blame] | 10 | |
| 11 | |
| 12 | def test_main(): |
Alexander Belopolsky | ff27ee0 | 2010-11-30 03:03:30 +0000 | [diff] [blame^] | 13 | test.support.run_unittest(json_tests.test_suite()) |
Christian Heimes | 9054000 | 2008-05-08 14:29:10 +0000 | [diff] [blame] | 14 | |
| 15 | |
| 16 | if __name__ == "__main__": |
| 17 | test_main() |