]> granicus.if.org Git - python/commitdiff
add missing test assertion (closes #20080)
authorBenjamin Peterson <benjamin@python.org>
Sat, 15 Feb 2014 18:19:59 +0000 (13:19 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 15 Feb 2014 18:19:59 +0000 (13:19 -0500)
Patch by Vajrasky Kok.

Lib/sqlite3/test/factory.py

index 0314ebd4411a48e4ebec4ff62e42f0799aeefbb4..1013755b9cfd7da02db67868f32ef5e2c5a3e244 100644 (file)
@@ -112,6 +112,7 @@ class RowFactoryTests(unittest.TestCase):
         self.con.row_factory = sqlite.Row
         row = self.con.execute("select 1 as a, 2 as b").fetchone()
         t = tuple(row)
+        self.assertEqual(t, (row['a'], row['b']))
 
     def CheckSqliteRowAsDict(self):
         """Checks if the row object can be correctly converted to a dictionary"""