Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Unified Diff: third_party/simplejson/simplejson/tests/__init__.py

Issue 159607: Extension docs build script, gyp target and PRESUBMIT.PY check (Closed)
Patch Set: remove build step on mac Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/simplejson/simplejson/tests/__init__.py
diff --git a/third_party/simplejson/simplejson/tests/__init__.py b/third_party/simplejson/simplejson/tests/__init__.py
new file mode 100755
index 0000000000000000000000000000000000000000..17c97963bd89bfddfa0c4302c160541cf04b6eca
--- /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()
« no previous file with comments | « third_party/simplejson/simplejson/scanner.py ('k') | third_party/simplejson/simplejson/tests/test_check_circular.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698