PageRenderTime 565ms CodeModel.GetById 183ms app.highlight 2ms RepoModel.GetById 177ms app.codeStats 0ms

/Lib/test/test_json.py

http://unladen-swallow.googlecode.com/
Python | 21 lines | 7 code | 0 blank | 14 comment | 0 complexity | 2442381b7cda4507e02bfe8526c4ec10 MD5 | raw file
 1"""Tests for json.
 2
 3The tests for json are defined in the json.tests package;
 4the test_suite() function there returns a test suite that's ready to
 5be run.
 6"""
 7
 8import json.tests
 9import sys
10import test.test_support
11
12
13def test_main():
14    test.test_support.run_unittest(json.tests.test_suite())
15
16
17if __name__ == "__main__":
18    if sys.flags.optimize >= 2:
19        print >>sys.stderr, "test_json -- skipping some tests due to -O flag."
20        sys.stderr.flush()
21    test_main()