Author: cito
Date: Sun Jan 17 11:19:32 2016
New Revision: 761

Log:
Avoid warning in tests with old PostgreSQL version

Modified:
   branches/4.x/tests/test_dbapi20.py
   trunk/tests/test_dbapi20.py

Modified: branches/4.x/tests/test_dbapi20.py
==============================================================================
--- branches/4.x/tests/test_dbapi20.py  Sat Jan 16 07:09:51 2016        (r760)
+++ branches/4.x/tests/test_dbapi20.py  Sun Jan 17 11:19:32 2016        (r761)
@@ -51,7 +51,6 @@
                 db = pg.DB('postgres', dbhost or None, dbport or -1)
             db.query('create database ' + dbname)
 
-
     def tearDown(self):
         dbapi20.DatabaseAPI20Test.tearDown(self)
 
@@ -100,6 +99,7 @@
                 "datetimetest timestamp,"
                 "intervaltest interval,"
                 "rowidtest oid)" % table)
+            cur.execute("set standard_conforming_strings to on")
             for s in ('numeric', 'monetary', 'time'):
                 cur.execute("set lc_%s to 'C'" % s)
             for _i in range(2):

Modified: trunk/tests/test_dbapi20.py
==============================================================================
--- trunk/tests/test_dbapi20.py Sat Jan 16 07:09:51 2016        (r760)
+++ trunk/tests/test_dbapi20.py Sun Jan 17 11:19:32 2016        (r761)
@@ -297,6 +297,7 @@
                 "datetimetest timestamp,"
                 "intervaltest interval,"
                 "rowidtest oid)" % table)
+            cur.execute("set standard_conforming_strings to on")
             for s in ('numeric', 'monetary', 'time'):
                 cur.execute("set lc_%s to 'C'" % s)
             for _i in range(2):
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to