Kaydet (Commit) ff27ee0b authored tarafından Alexander Belopolsky's avatar Alexander Belopolsky

Issue #10572: Moved json tests to Lib/test/json_tests.

Approved by Raymond Hettinger.
üst 69b34bfe
...@@ -10,7 +10,7 @@ def test_suite(): ...@@ -10,7 +10,7 @@ def test_suite():
loader = unittest.TestLoader() loader = unittest.TestLoader()
for fn in os.listdir(here): for fn in os.listdir(here):
if fn.startswith("test") and fn.endswith(".py"): if fn.startswith("test") and fn.endswith(".py"):
modname = "json.tests." + fn[:-3] modname = "test.json_tests." + fn[:-3]
__import__(modname) __import__(modname)
module = sys.modules[modname] module = sys.modules[modname]
suite.addTests(loader.loadTestsFromModule(module)) suite.addTests(loader.loadTestsFromModule(module))
......
...@@ -5,12 +5,12 @@ the test_suite() function there returns a test suite that's ready to ...@@ -5,12 +5,12 @@ the test_suite() function there returns a test suite that's ready to
be run. be run.
""" """
import json.tests from test import json_tests
import test.support import test.support
def test_main(): def test_main():
test.support.run_unittest(json.tests.test_suite()) test.support.run_unittest(json_tests.test_suite())
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -890,7 +890,7 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ ...@@ -890,7 +890,7 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
test/tracedmodules test/encoded_modules \ test/tracedmodules test/encoded_modules \
concurrent concurrent/futures encodings \ concurrent concurrent/futures encodings \
email email/mime email/test email/test/data \ 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 \ sqlite3 sqlite3/test \
logging csv wsgiref urllib \ logging csv wsgiref urllib \
lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \ lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment