]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Drop TestSqlFormat::test_unicode
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 10 Jun 2021 11:56:06 +0000 (13:56 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 22 Jun 2021 09:48:23 +0000 (10:48 +0100)
The same is already checked in test_pos_spec() method.

tests/test_sql.py

index c1bf9e35978ec38257f5e9c53e7e6d40bf38d3ad..5b1fa490e69f442ff633289affe0bdab21af77fd 100644 (file)
@@ -51,14 +51,6 @@ class TestSqlFormat:
         assert isinstance(s1, str)
         assert s1 == 'select "field" from "table"'
 
-    def test_unicode(self, conn):
-        s = sql.SQL(u"select {0} from {1}").format(
-            sql.Identifier(u"field"), sql.Identifier("table")
-        )
-        s1 = s.as_string(conn)
-        assert isinstance(s1, str)
-        assert s1 == u'select "field" from "table"'
-
     def test_compose_literal(self, conn):
         s = sql.SQL("select {0};").format(sql.Literal(dt.date(2016, 12, 31)))
         s1 = s.as_string(conn)