Visitar URL original
Use import helper to improve sqlite3 audit tests · Issue #95291 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250607043948/https://github.com/python/cpython/issues/95291
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