Esempio n. 1
0
def load_tests(loader, _, pattern):
    suite = unittest.TestSuite()
    for mod in (json, json.encoder, json.decoder):
        suite.addTest(doctest.DocTestSuite(mod))
    suite.addTest(TestPyTest('test_pyjson'))
    suite.addTest(TestCTest('test_cjson'))
    pkg_dir = os.path.dirname(__file__)
    return support.load_package_tests(pkg_dir, loader, suite, pattern)
Esempio n. 2
0
def load_tests(loader, tests, pattern):
    if test.support.verbose:
        print(
            "test_sqlite: testing with version",
            "{!r}, sqlite_version {!r}".format(sqlite3.version,
                                               sqlite3.sqlite_version))
    return load_package_tests(os.path.dirname(sqlite3.test.__file__), loader,
                              tests, pattern)
Esempio n. 3
0
def load_tests(loader, _, pattern):
    suite = unittest.TestSuite()
    for mod in (json, json.encoder, json.decoder):
        suite.addTest(doctest.DocTestSuite(mod))
    suite.addTest(TestPyTest('test_pyjson'))
    suite.addTest(TestCTest('test_cjson'))

    pkg_dir = os.path.dirname(__file__)
    return support.load_package_tests(pkg_dir, loader, suite, pattern)
Esempio n. 4
0
def load_tests(*args):
    return support.load_package_tests(os.path.dirname(__file__), *args)
Esempio n. 5
0
def load_tests(*args):
    return load_package_tests(os.path.dirname(__file__), *args)
Esempio n. 6
0
def load_tests(*args):
    pkg_dir = os.path.dirname(__file__)
    return load_package_tests(pkg_dir, *args)
Esempio n. 7
0
def load_tests(*args):
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore', category=DeprecationWarning, message='lib2to3')
        return load_package_tests(os.path.dirname(__file__), *args)
Esempio n. 8
0
def load_tests(loader, _, pattern):
    suite = unittest.TestSuite()

    pkg_dir = os.path.dirname(__file__)
    return support.load_package_tests(pkg_dir, loader, suite, pattern)