Skip to content

Commit

Permalink
Simplify __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
Erlend E. Aasland committed Oct 29, 2021
1 parent cbb18a9 commit 7f2ee3b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Lib/test/test_sqlite3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
import os
import sqlite3

def load_tests(loader, tests, pattern):
if test.support.verbose:
print("test_sqlite3: testing with version",
"{!r}, sqlite_version {!r}".format(sqlite3.version,
sqlite3.sqlite_version))
def load_tests(*args):
pkg_dir = os.path.dirname(__file__)
return load_package_tests(pkg_dir, loader, tests, pattern)
return load_package_tests(pkg_dir, *args)

if test.support.verbose:
print("test_sqlite3: testing with version",
"{!r}, sqlite_version {!r}".format(sqlite3.version,
sqlite3.sqlite_version))

if __name__ == "__main__":
unittest.main()

0 comments on commit 7f2ee3b

Please sign in to comment.