Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment and clean up __init__
  • Loading branch information
Erlend E. Aasland committed Oct 29, 2021
commit 75fe05b804f319ea43b57751f513ed525bef9268
7 changes: 3 additions & 4 deletions Lib/test/test_sqlite3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import test.support
from test.support import import_helper
from test.support import load_package_tests
from test.support import import_helper, load_package_tests, verbose

# Skip test if _sqlite3 module not installed
Comment thread
brettcannon marked this conversation as resolved.
Outdated
import_helper.import_module('_sqlite3')
Expand All @@ -9,11 +7,12 @@
import os
import sqlite3

# Implement the unittest "load tests" protocol
Comment thread
brettcannon marked this conversation as resolved.
Outdated
def load_tests(*args):
pkg_dir = os.path.dirname(__file__)
return load_package_tests(pkg_dir, *args)
Comment thread
erlend-aasland marked this conversation as resolved.

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