]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-108558: Improve sqlite3 row factory tests (GH-108578) (#108616)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Aug 2023 09:47:27 +0000 (02:47 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 09:47:27 +0000 (09:47 +0000)
commitcc12c965af16550bb1af32e0485217ae6d718218
tree27b8357eef4d18062576582bf8519a2564ff127b
parentb1ed10f41363dd2460837fce33f09027a799362b
[3.11] gh-108558: Improve sqlite3 row factory tests (GH-108578) (#108616)

Add test_sqlite_row_keys() to explicitly test sqlite3.Row.keys().

Cleanups:
- Reduce test noise by converting docstrings to regular comments
- Reduce boilerplate code by adding a setUp() method to RowFactoryTests

(cherry picked from commit 6eaddc10e972273c1aed8b88c538e65e4773496e)

Co-authored-by: Edward Schauman-Haigh <142528725+EddInSverige@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Lib/test/test_sqlite3/test_factory.py