Author: cito
Date: Sat Mar 26 13:24:09 2016
New Revision: 871
Log:
Set the time zone in text fixtures
Modified:
trunk/tests/test_classic_connection.py
trunk/tests/test_dbapi20.py
Modified: trunk/tests/test_classic_connection.py
==============================================================================
--- trunk/tests/test_classic_connection.py Sat Mar 26 13:22:18 2016
(r870)
+++ trunk/tests/test_classic_connection.py Sat Mar 26 13:24:09 2016
(r871)
@@ -910,6 +910,7 @@
self.c = connect()
self.c.query('set client_encoding=utf8')
self.c.query("set datestyle='ISO,YMD'")
+ self.c.query("set timezone='UTC'")
def tearDown(self):
self.c.close()
Modified: trunk/tests/test_dbapi20.py
==============================================================================
--- trunk/tests/test_dbapi20.py Sat Mar 26 13:22:18 2016 (r870)
+++ trunk/tests/test_dbapi20.py Sat Mar 26 13:24:09 2016 (r871)
@@ -567,6 +567,7 @@
con = self._connect()
try:
cur = con.cursor()
+ cur.execute("set timezone = UTC")
cur.execute("create table %s ("
"d date, t time, ts timestamp,"
"tz timetz, tsz timestamptz)" % table)
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql