diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-30 03:03:30 +0000 |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-30 03:03:30 +0000 |
commit | ff27ee0b400030419cfd3c9966f275bfbcb569f8 (patch) | |
tree | c2e45325768bd5256432667c387f304d549493e6 | |
parent | 69b34bfe9c3e5da1d7336a607ab56f1c3a178dca (diff) | |
download | cpython-git-ff27ee0b400030419cfd3c9966f275bfbcb569f8.tar.gz |
Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.
-rw-r--r-- | Lib/test/json_tests/__init__.py (renamed from Lib/json/tests/__init__.py) | 2 | ||||
-rw-r--r-- | Lib/test/json_tests/test_decode.py (renamed from Lib/json/tests/test_decode.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_default.py (renamed from Lib/json/tests/test_default.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_dump.py (renamed from Lib/json/tests/test_dump.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_encode_basestring_ascii.py (renamed from Lib/json/tests/test_encode_basestring_ascii.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_fail.py (renamed from Lib/json/tests/test_fail.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_float.py (renamed from Lib/json/tests/test_float.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_indent.py (renamed from Lib/json/tests/test_indent.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_pass1.py (renamed from Lib/json/tests/test_pass1.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_pass2.py (renamed from Lib/json/tests/test_pass2.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_pass3.py (renamed from Lib/json/tests/test_pass3.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_recursion.py (renamed from Lib/json/tests/test_recursion.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_scanstring.py (renamed from Lib/json/tests/test_scanstring.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_separators.py (renamed from Lib/json/tests/test_separators.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_speedups.py (renamed from Lib/json/tests/test_speedups.py) | 0 | ||||
-rw-r--r-- | Lib/test/json_tests/test_unicode.py (renamed from Lib/json/tests/test_unicode.py) | 0 | ||||
-rw-r--r-- | Lib/test/test_json.py | 4 | ||||
-rw-r--r-- | Makefile.pre.in | 2 |
18 files changed, 4 insertions, 4 deletions
diff --git a/Lib/json/tests/__init__.py b/Lib/test/json_tests/__init__.py index 1a1e3e6d5a..4977468e47 100644 --- a/Lib/json/tests/__init__.py +++ b/Lib/test/json_tests/__init__.py @@ -10,7 +10,7 @@ def test_suite(): loader = unittest.TestLoader() for fn in os.listdir(here): if fn.startswith("test") and fn.endswith(".py"): - modname = "json.tests." + fn[:-3] + modname = "test.json_tests." + fn[:-3] __import__(modname) module = sys.modules[modname] suite.addTests(loader.loadTestsFromModule(module)) diff --git a/Lib/json/tests/test_decode.py b/Lib/test/json_tests/test_decode.py index f41e5b7223..f41e5b7223 100644 --- a/Lib/json/tests/test_decode.py +++ b/Lib/test/json_tests/test_decode.py diff --git a/Lib/json/tests/test_default.py b/Lib/test/json_tests/test_default.py index 6a03eeb834..6a03eeb834 100644 --- a/Lib/json/tests/test_default.py +++ b/Lib/test/json_tests/test_default.py diff --git a/Lib/json/tests/test_dump.py b/Lib/test/json_tests/test_dump.py index 8df234b819..8df234b819 100644 --- a/Lib/json/tests/test_dump.py +++ b/Lib/test/json_tests/test_dump.py diff --git a/Lib/json/tests/test_encode_basestring_ascii.py b/Lib/test/json_tests/test_encode_basestring_ascii.py index 4fddd121c6..4fddd121c6 100644 --- a/Lib/json/tests/test_encode_basestring_ascii.py +++ b/Lib/test/json_tests/test_encode_basestring_ascii.py diff --git a/Lib/json/tests/test_fail.py b/Lib/test/json_tests/test_fail.py index 9768edf19a..9768edf19a 100644 --- a/Lib/json/tests/test_fail.py +++ b/Lib/test/json_tests/test_fail.py diff --git a/Lib/json/tests/test_float.py b/Lib/test/json_tests/test_float.py index ca4a506db4..ca4a506db4 100644 --- a/Lib/json/tests/test_float.py +++ b/Lib/test/json_tests/test_float.py diff --git a/Lib/json/tests/test_indent.py b/Lib/test/json_tests/test_indent.py index d8030aaade..d8030aaade 100644 --- a/Lib/json/tests/test_indent.py +++ b/Lib/test/json_tests/test_indent.py diff --git a/Lib/json/tests/test_pass1.py b/Lib/test/json_tests/test_pass1.py index 719c113759..719c113759 100644 --- a/Lib/json/tests/test_pass1.py +++ b/Lib/test/json_tests/test_pass1.py diff --git a/Lib/json/tests/test_pass2.py b/Lib/test/json_tests/test_pass2.py index 379117e905..379117e905 100644 --- a/Lib/json/tests/test_pass2.py +++ b/Lib/test/json_tests/test_pass2.py diff --git a/Lib/json/tests/test_pass3.py b/Lib/test/json_tests/test_pass3.py index 9151c4321c..9151c4321c 100644 --- a/Lib/json/tests/test_pass3.py +++ b/Lib/test/json_tests/test_pass3.py diff --git a/Lib/json/tests/test_recursion.py b/Lib/test/json_tests/test_recursion.py index 1e9b8ab757..1e9b8ab757 100644 --- a/Lib/json/tests/test_recursion.py +++ b/Lib/test/json_tests/test_recursion.py diff --git a/Lib/json/tests/test_scanstring.py b/Lib/test/json_tests/test_scanstring.py index d503851e56..d503851e56 100644 --- a/Lib/json/tests/test_scanstring.py +++ b/Lib/test/json_tests/test_scanstring.py diff --git a/Lib/json/tests/test_separators.py b/Lib/test/json_tests/test_separators.py index d5b92bd65d..d5b92bd65d 100644 --- a/Lib/json/tests/test_separators.py +++ b/Lib/test/json_tests/test_separators.py diff --git a/Lib/json/tests/test_speedups.py b/Lib/test/json_tests/test_speedups.py index 271840978c..271840978c 100644 --- a/Lib/json/tests/test_speedups.py +++ b/Lib/test/json_tests/test_speedups.py diff --git a/Lib/json/tests/test_unicode.py b/Lib/test/json_tests/test_unicode.py index e336c91fa9..e336c91fa9 100644 --- a/Lib/json/tests/test_unicode.py +++ b/Lib/test/json_tests/test_unicode.py diff --git a/Lib/test/test_json.py b/Lib/test/test_json.py index a4b6e7a829..41ff8974fc 100644 --- a/Lib/test/test_json.py +++ b/Lib/test/test_json.py @@ -5,12 +5,12 @@ the test_suite() function there returns a test suite that's ready to be run. """ -import json.tests +from test import json_tests import test.support def test_main(): - test.support.run_unittest(json.tests.test_suite()) + test.support.run_unittest(json_tests.test_suite()) if __name__ == "__main__": diff --git a/Makefile.pre.in b/Makefile.pre.in index c605b21409..28b3001ee8 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -890,7 +890,7 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ test/tracedmodules test/encoded_modules \ concurrent concurrent/futures encodings \ email email/mime email/test email/test/data \ - html json json/tests http dbm xmlrpc \ + html json test/json_tests http dbm xmlrpc \ sqlite3 sqlite3/test \ logging csv wsgiref urllib \ lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \ |