summaryrefslogtreecommitdiff
path: root/tests/test_bugX000.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_bugX000.py')
-rwxr-xr-xtests/test_bugX000.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/test_bugX000.py b/tests/test_bugX000.py
index efa593e..fbd2a9f 100755
--- a/tests/test_bugX000.py
+++ b/tests/test_bugX000.py
@@ -26,15 +26,17 @@ import psycopg2
import time
import unittest
+
class DateTimeAllocationBugTestCase(unittest.TestCase):
def test_date_time_allocation_bug(self):
- 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)
+ 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)))
+ time.mktime((2002, 12, 25, 13, 45, 30, 0, 0, 0)))
+ del d1, d2, t1, t2
def test_suite():