Brett Cannon | 4b964f9 | 2008-05-05 20:21:38 +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 | |
| 8 | import json.tests |
| 9 | import test.test_support |
| 10 | |
| 11 | |
| 12 | def test_main(): |
| 13 | test.test_support.run_unittest(json.tests.test_suite()) |
Benjamin Peterson | 5f9050a | 2008-05-10 03:08:17 +0000 | [diff] [blame] | 14 | test.test_support.run_doctest(json) |
Brett Cannon | 4b964f9 | 2008-05-05 20:21:38 +0000 | [diff] [blame] | 15 | |
| 16 | |
| 17 | if __name__ == "__main__": |
| 18 | test_main() |