Skip to content

Use import helper to improve sqlite3 audit tests #95291

Closed
@erlend-aasland

Description

@erlend-aasland

unittest does not report the sqlite3 audit test as skipped if sqlite3 is not available.

Re #95012 (comment):

Use self.skipTest() to report the test as skipped.

Or use helper test.support.import_helper.import_module() to check that the module is importable.

Metadata

Metadata

Labels

testsTests in the Lib/test dirtriagedThe issue has been accepted as valid by a triager.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions