Mercurial > cpython-lru_cache-weakref
diff Lib/sqlite3/test/dump.py @ 81378:2a417ad8bfbf 2.7
#15109: revert '%'->'format' changes in 4b105d328fe7 to fix regression.
With '%', non-ascii worked because the '%' automatically got promoted to
unicode. With format that doesn't happen, which led to encoding errors. This
fix goes back to using %, and adds a test to make sure non-ascii string values
work in iterdump.
| author | R David Murray <rdmurray@bitdance.com> |
|---|---|
| date | Thu, 10 Jan 2013 21:10:40 -0500 |
| parents | bb4e4f0cec2e |
| children |
line wrap: on
line diff
--- a/Lib/sqlite3/test/dump.py Thu Jan 10 20:22:57 2013 -0500 +++ b/Lib/sqlite3/test/dump.py Thu Jan 10 21:10:40 2013 -0500 @@ -29,6 +29,8 @@ , "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));"
