Skip to content

Commit 253a45d

Browse files
timmiejreback
authored andcommitted
minor correction after move of function
1 parent 2cc6e48 commit 253a45d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/io/tests/test_date_converters.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pandas.compat import StringIO, BytesIO
2-
from datetime import date, datetime
2+
from datetime import datetime, time, timedelta, date
33
import csv
44
import os
55
import sys
@@ -120,20 +120,22 @@ def test_generic(self):
120120
self.assert_('ym' in df)
121121
self.assert_(df.ym.ix[0] == date(2001, 1, 1))
122122

123-
def test_offset_datetime():
123+
def test_offset_datetime(self):
124124
#test with a datetime.datetime object
125125
dt_in = datetime(2013, 1, 1, 1, 10, 10, 100000)
126126
dt_target = datetime(2013, 1, 2, 6, 20, 40, 100600)
127-
dt_res = conv.offset_datetime(dt_in, days=1, hours=5, minutes=10, seconds=30, microseconds=600)
127+
dt_res = conv.offset_datetime(dt_in, days=1, hours=5, minutes=10,
128+
seconds=30, microseconds=600)
128129

129130
assert(dt_res == dt_target)
130131
#test with a datetime.time object
131132
ti_in = time(1, 10, 20, 100000)
132133
ti_target = time(6, 20, 50, 100600)
133-
ti_res = conv.offset_datetime(ti_in, hours=5, minutes=10, seconds=30, microseconds=600)
134+
ti_res = conv.offset_datetime(ti_in, hours=5, minutes=10,
135+
seconds=30, microseconds=600)
134136
assert(ti_res == ti_target)
135137

136-
def test_dt2ti():
138+
def test_dt2ti(self):
137139
#a datetime.datetime object
138140
dt_in = datetime(2013, 1, 1, 1, 10, 10, 100000)
139141
ti_target = time(1, 10, 10, 100000)

0 commit comments

Comments
 (0)