summaryrefslogtreecommitdiffstats
path: root/third_party/simplejson/simplejson/tests/__init__.py
blob: 17c97963bd89bfddfa0c4302c160541cf04b6eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import unittest
import doctest

def additional_tests():
    import simplejson
    import simplejson.encoder
    import simplejson.decoder
    suite = unittest.TestSuite()
    for mod in (simplejson, simplejson.encoder, simplejson.decoder):
        suite.addTest(doctest.DocTestSuite(mod))
    suite.addTest(doctest.DocFileSuite('../../index.rst'))
    return suite

def main():
    suite = additional_tests()
    runner = unittest.TextTestRunner()
    runner.run(suite)

if __name__ == '__main__':
    import os
    import sys
    sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
    main()