cpython/Lib/test/test_sqlite3
Erlend Egeberg Aasland 4674fd4e93
bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695)
* Improve exception compliance with PEP 249
* Raise InterfaceError instead of ProgrammingError for SQLITE_MISUSE.
  If SQLITE_MISUSE is raised, it is a sqlite3 module bug. Users of the
  sqlite3 module are not responsible for using the SQLite C API correctly.
* Don't overwrite BufferError with ValueError when conversion to BLOB fails.
* Raise ProgrammingError instead of Warning if user tries to execute() more
  than one SQL statement.
* Raise ProgrammingError instead of ValueError if an SQL query contains null characters.
* Make sure `_pysqlite_set_result` raises an exception if it returns -1.
2022-03-16 22:58:25 -07:00
..
__init__.py
__main__.py
test_backup.py
test_dbapi.py bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695) 2022-03-16 22:58:25 -07:00
test_dump.py
test_factory.py
test_hooks.py bpo-45138: Revert GH-28240: Expand traced SQL statements (GH-31788) 2022-03-09 09:39:49 -08:00
test_regression.py bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695) 2022-03-16 22:58:25 -07:00
test_transactions.py bpo-46425: use absolute imports in `test_sqlite3` (GH-30676) 2022-01-22 18:03:56 +02:00
test_types.py
test_userfunctions.py bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695) 2022-03-16 22:58:25 -07:00