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

Approved by Raymond Hettinger.
This commit is contained in:
Alexander Belopolsky 2010-11-30 03:03:30 +00:00
parent 69b34bfe9c
commit ff27ee0b40
18 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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__":

View File

@ -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 \