summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3/test/dump.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sqlite3/test/dump.py')
-rw-r--r--Lib/sqlite3/test/dump.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/sqlite3/test/dump.py b/Lib/sqlite3/test/dump.py
index a1f45a4..b7de810 100644
--- a/Lib/sqlite3/test/dump.py
+++ b/Lib/sqlite3/test/dump.py
@@ -29,6 +29,8 @@ class DumpTests(unittest.TestCase):
,
"INSERT INTO \"t1\" VALUES(2,'foo2',30,30);"
,
+ u"INSERT INTO \"t1\" VALUES(3,'f\xc3\xb6',40,10);"
+ ,
"CREATE TABLE t2(id integer, t2_i1 integer, " \
"t2_i2 integer, primary key (id)," \
"foreign key(t2_i1) references t1(t1_i1));"
@@ -47,7 +49,7 @@ class DumpTests(unittest.TestCase):
expected_sqls = ['BEGIN TRANSACTION;'] + expected_sqls + \
['COMMIT;']
[self.assertEqual(expected_sqls[i], actual_sqls[i])
- for i in range(len(expected_sqls))]
+ for i in xrange(len(expected_sqls))]
def CheckUnorderableRow(self):
# iterdump() should be able to cope with unorderable row types (issue #15545)