summaryrefslogtreecommitdiff
path: root/tests/test_bugX000.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-10-11 00:10:53 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-10-11 00:11:55 +0100
commit91d2158de7954daccb0a22885021c8416d1d5c6c (patch)
tree0c6d537c377ee095d7d4d451477931d7a310dd11 /tests/test_bugX000.py
parent4458c9b4c94e524237fb39c7821b248fc2a85e35 (diff)
downloadpsycopg2-91d2158de7954daccb0a22885021c8416d1d5c6c.tar.gz
Python source cleanup using flake8
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():