summaryrefslogtreecommitdiff
path: root/src/python/stdlib/json/tests/__init__.py
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
commite46ef289e142982d7bd592faa7b0f85470364c01 (patch)
treecda253e03788f7db0a7cdcd05662f66b4455e298 /src/python/stdlib/json/tests/__init__.py
parentd0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff)
downloadpowder-e46ef289e142982d7bd592faa7b0f85470364c01.zip
powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/json/tests/__init__.py')
-rw-r--r--src/python/stdlib/json/tests/__init__.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/python/stdlib/json/tests/__init__.py b/src/python/stdlib/json/tests/__init__.py
deleted file mode 100644
index 1a1e3e6..0000000
--- a/src/python/stdlib/json/tests/__init__.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import os
-import sys
-import unittest
-import doctest
-
-here = os.path.dirname(__file__)
-
-def test_suite():
- suite = additional_tests()
- loader = unittest.TestLoader()
- for fn in os.listdir(here):
- if fn.startswith("test") and fn.endswith(".py"):
- modname = "json.tests." + fn[:-3]
- __import__(modname)
- module = sys.modules[modname]
- suite.addTests(loader.loadTestsFromModule(module))
- return suite
-
-def additional_tests():
- import json
- import json.encoder
- import json.decoder
- suite = unittest.TestSuite()
- for mod in (json, json.encoder, json.decoder):
- suite.addTest(doctest.DocTestSuite(mod))
- return suite
-
-def main():
- suite = test_suite()
- runner = unittest.TextTestRunner()
- runner.run(suite)
-
-if __name__ == '__main__':
- sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
- main()