]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45512: Raise exception if sqlite3.Connection.__init__ is called with bad isolatio...
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Mon, 15 Nov 2021 12:55:38 +0000 (13:55 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 12:55:38 +0000 (21:55 +0900)
commit822c3dcce3996e411c1ff5c432c6ac7d2845cfd6
treede99f1c8a4bd45d891568a449846053fa9e3b7de
parentb567b9d74bd9e476a3027335873bb0508d6e450f
bpo-45512: Raise exception if sqlite3.Connection.__init__ is called with bad isolation level (#29561)

* bpo-45512: Raise sqlite3.Connection.__init__ is called with bad isolation level

* Also explicitly test allowed isolation levels

* Use subTest for better error messages if something goes wrong

* Update Lib/test/test_sqlite3/test_dbapi.py

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Lib/test/test_sqlite3/test_dbapi.py
Modules/_sqlite/connection.c