mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
* Update sqlite3, dbm.sqlite3 and tests to CPython 3.14.2 * Add skip decorators for failing sqlite3 tests Skip tests that fail due to unimplemented features or behavior differences: - _iterdump not implemented (test_dump.py) - Unraisable exception handling not implemented (test_hooks.py, test_userfunctions.py) - Keyword-only arguments not supported for various methods - Autocommit behavior differences (test_transactions.py) - TransactionTests skipped due to timeout parameter type issue - Various error message differences (test_dbapi.py) - SQLITE_DBCONFIG constants not implemented - Row and Connection signature inspection issues All tests now pass with 95 skipped out of 493 total tests. * Change @unittest.skip to @unittest.expectedFailure per code review - Convert @unittest.skip decorators to @unittest.expectedFailure for tests that fail without panic/hang - Keep @unittest.skip only for TransactionTests class (setUp fails with timeout=0 int type) * fixup
15 lines
440 B
Python
Vendored
15 lines
440 B
Python
Vendored
from test.support import import_helper, load_package_tests, verbose
|
|
|
|
# Skip test if _sqlite3 module not installed.
|
|
import_helper.import_module('_sqlite3')
|
|
|
|
import os
|
|
import sqlite3
|
|
|
|
# Implement the unittest "load tests" protocol.
|
|
def load_tests(*args):
|
|
if verbose:
|
|
print(f"test_sqlite3: testing with SQLite version {sqlite3.sqlite_version}")
|
|
pkg_dir = os.path.dirname(__file__)
|
|
return load_package_tests(pkg_dir, *args)
|