[Python-checkins] cpython (2.7): add missing test assertion (closes #20080)

benjamin.peterson python-checkins at python.org
Sat Feb 15 19:20:48 CET 2014


http://hg.python.org/cpython/rev/a87f284e14ea
changeset: 89202:a87f284e14ea
branch: 2.7
parent: 89200:f8e1fdf79823
user: Benjamin Peterson <benjamin at python.org>
date: Sat Feb 15 13:19:59 2014 -0500
summary:
 add missing test assertion (closes #20080)
Patch by Vajrasky Kok.
files:
 Lib/sqlite3/test/factory.py | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/sqlite3/test/factory.py b/Lib/sqlite3/test/factory.py
--- a/Lib/sqlite3/test/factory.py
+++ b/Lib/sqlite3/test/factory.py
@@ -112,6 +112,7 @@
 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"""
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /