Added test for DateTime object allocation bug.

This commit is contained in:
Federico Di Gregorio 2007-09-19 13:40:18 +00:00
parent 07892b29a6
commit 1ed16c8265

10
tests/bugX000.py Normal file
View File

@ -0,0 +1,10 @@
import psycopg2
import time
d1 = psycopg2.Date(2002,12,25)
d2 = psycopg2.DateFromTicks(time.mktime((2002,12,25,0,0,0,0,0,0)))
t1 = psycopg2.Time(13,45,30)
t2 = psycopg2.TimeFromTicks(time.mktime((2001,1,1,13,45,30,0,0,0)))
t1 = psycopg2.Timestamp(2002,12,25,13,45,30)
t2 = psycopg2.TimestampFromTicks( time.mktime((2002,12,25,13,45,30,0,0,0)))