mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
merge 3.3 (#20080)
This commit is contained in:
commit
5ef48d9c79
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ class RowFactoryTests(unittest.TestCase):
|
||||||
self.con.row_factory = sqlite.Row
|
self.con.row_factory = sqlite.Row
|
||||||
row = self.con.execute("select 1 as a, 2 as b").fetchone()
|
row = self.con.execute("select 1 as a, 2 as b").fetchone()
|
||||||
t = tuple(row)
|
t = tuple(row)
|
||||||
|
self.assertEqual(t, (row['a'], row['b']))
|
||||||
|
|
||||||
def CheckSqliteRowAsDict(self):
|
def CheckSqliteRowAsDict(self):
|
||||||
"""Checks if the row object can be correctly converted to a dictionary"""
|
"""Checks if the row object can be correctly converted to a dictionary"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue