diff options
author | Federico Di Gregorio <fog@initd.org> | 2007-09-19 13:40:18 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2007-09-19 13:40:18 +0000 |
commit | 1ed16c8265d6b5ee68ad9006adb2b2eb2deb2639 (patch) | |
tree | abfe30b45e2e96d486caadd8f6995d0b782f4ddc /tests/bugX000.py | |
parent | 07892b29a656e21e74e40f8aafeb2c5473ecaef5 (diff) | |
download | psycopg2-1ed16c8265d6b5ee68ad9006adb2b2eb2deb2639.tar.gz |
Added test for DateTime object allocation bug.
Diffstat (limited to 'tests/bugX000.py')
-rw-r--r-- | tests/bugX000.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugX000.py b/tests/bugX000.py new file mode 100644 index 0000000..486d320 --- /dev/null +++ b/tests/bugX000.py @@ -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))) + |