diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2022-03-17 05:58:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 05:58:25 (GMT) |
commit | 4674fd4e938eb4a29ccd5b12c15455bd2a41c335 (patch) | |
tree | 9b6d452caca59b4fa2e3eee150de2d3e098d73fa /Lib/tkinter/test/test_tkinter/test_widgets.py | |
parent | 96568e995d840c66edb25b6b9d85e4dcccf5a936 (diff) | |
download | cpython-4674fd4e938eb4a29ccd5b12c15455bd2a41c335.zip cpython-4674fd4e938eb4a29ccd5b12c15455bd2a41c335.tar.gz cpython-4674fd4e938eb4a29ccd5b12c15455bd2a41c335.tar.bz2 |
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.
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_widgets.py')
0 files changed, 0 insertions, 0 deletions