cpython/Lib/sqlite3/test
Serhiy Storchaka 0eec6276fd
bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654)
* MemoryError is now raised instead of sqlite3.Warning when
  memory is not enough for encoding a statement to UTF-8
  in Connection.__call__() and Cursor.execute().
* UnicodEncodeError is now raised instead of sqlite3.Warning when
  the statement contains surrogate characters
  in Connection.__call__() and Cursor.execute().
* TypeError is now raised instead of ValueError for non-string
  script argument in Cursor.executescript().
* ValueError is now raised for script containing the null
  character instead of truncating it in Cursor.executescript().
* Correctly handle exceptions raised when getting boolean value
  of the result of the progress handler.
* Add many tests covering different corner cases.

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-08-08 08:49:44 +03:00
..
__init__.py
backup.py bpo-43265: Improve sqlite3.Connection.backup error handling (GH-24586) 2021-04-14 14:45:49 +03:00
dbapi.py bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
dump.py bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests (GH-20538) 2021-01-07 02:05:07 +02:00
factory.py bpo-43553: Improve sqlite3 test coverage (GH-26886) 2021-06-24 12:56:56 +01:00
hooks.py bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
regression.py bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
transactions.py bpo-42847: Normalise Lib/sqlite3/test/* file encodings (GH-24147) 2021-01-07 02:36:35 +02:00
types.py bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
userfunctions.py bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00