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)
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)
def load_tests(*args): return support.load_package_tests(os.path.dirname(__file__), *args)
def load_tests(*args): return load_package_tests(os.path.dirname(__file__), *args)
def load_tests(*args): pkg_dir = os.path.dirname(__file__) return load_package_tests(pkg_dir, *args)
def load_tests(*args): with warnings.catch_warnings(): warnings.filterwarnings('ignore', category=DeprecationWarning, message='lib2to3') return load_package_tests(os.path.dirname(__file__), *args)
def load_tests(loader, _, pattern): suite = unittest.TestSuite() pkg_dir = os.path.dirname(__file__) return support.load_package_tests(pkg_dir, loader, suite, pattern)