diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-09 19:09:03 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-09 19:09:03 (GMT) |
commit | bc35bebb458c6d3ad74adaf0d75f5156ab89fec9 (patch) | |
tree | 727e472a4ba702f48fb42d4b7246edc529d1aa67 /Lib | |
parent | f0f9679d5ce6b65f4b41f1c42b24c6ab43923a41 (diff) | |
download | cpython-bc35bebb458c6d3ad74adaf0d75f5156ab89fec9.zip cpython-bc35bebb458c6d3ad74adaf0d75f5156ab89fec9.tar.gz cpython-bc35bebb458c6d3ad74adaf0d75f5156ab89fec9.tar.bz2 |
Undocument and clean up sqlite3.OptimizedUnicode
Closes #13921.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/sqlite3/test/factory.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/factory.py b/Lib/sqlite3/test/factory.py index 5569585..9e833ae 100644 --- a/Lib/sqlite3/test/factory.py +++ b/Lib/sqlite3/test/factory.py @@ -178,6 +178,8 @@ class TextFactoryTests(unittest.TestCase): self.assertTrue(row[0].endswith("reich"), "column must contain original data") def CheckOptimizedUnicode(self): + # In py3k, str objects are always returned when text_factory + # is OptimizedUnicode self.con.text_factory = sqlite.OptimizedUnicode austria = "Österreich" germany = "Deutchland" |