Changeset 848 for trunk/tests


Ignore:
Timestamp:
Feb 9, 2016, 6:00:38 AM (3 years ago)
Author:
cito
Message:

Fix test with time zones under Python 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_dbapi20.py

    r847 r848  
    589589                    d = (dt.year, dt.month, dt.day)
    590590                    t = (dt.hour, dt.minute, dt.second, dt.microsecond)
     591                    z = (timezone.utc,) if timezone else ()
    591592                    params = [pgdb.Date(*d), pgdb.Time(*t),
    592                             pgdb.Timestamp(*(d + t)), pgdb.Time(*t),
    593                             pgdb.Timestamp(*(d + t))]
     593                            pgdb.Timestamp(*(d + t)), pgdb.Time(*(t + z)),
     594                            pgdb.Timestamp(*(d + t + z))]
    594595                for datestyle in ('iso', 'postgres, mdy', 'postgres, dmy',
    595596                        'sql, mdy', 'sql, dmy', 'german'):
Note: See TracChangeset for help on using the changeset viewer.