Skip to content
Snippets Groups Projects
Unverified Commit 152eb903 authored by Erlend Egeberg Aasland's avatar Erlend Egeberg Aasland Committed by GitHub
Browse files

gh-95291: Use import helper to improve sqlite3 audit tests (#95292)

Now the tests are correctly reported as skipped if sqlite3 is not available.
parent b8c52869
Branches
Tags
No related merge requests found
......@@ -155,10 +155,7 @@ def test_http(self):
def test_sqlite3(self):
try:
import sqlite3
except ImportError:
return
sqlite3 = import_helper.import_module("sqlite3")
returncode, events, stderr = self.run_python("test_sqlite3")
if returncode:
self.fail(stderr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment