diff options
Diffstat (limited to 'third_party/simplejson/simplejson/tests/__init__.py')
-rwxr-xr-x | third_party/simplejson/simplejson/tests/__init__.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/simplejson/simplejson/tests/__init__.py b/third_party/simplejson/simplejson/tests/__init__.py new file mode 100755 index 0000000..17c9796 --- /dev/null +++ b/third_party/simplejson/simplejson/tests/__init__.py @@ -0,0 +1,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() |