File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 23
23
import pandas .util .testing as tm
24
24
from numpy .random import rand , randn
25
25
from pandas import _np_version_under1p8
26
+ import pandas .compat as compat
27
+
26
28
27
29
iNaT = tslib .iNaT
28
30
@@ -311,7 +313,7 @@ def test_fields(self):
311
313
312
314
def check (value ):
313
315
# that we are int/long like
314
- self .assertTrue (isinstance (value , (int , long )))
316
+ self .assertTrue (isinstance (value , (int , compat . long )))
315
317
316
318
# compat to datetime.timedelta
317
319
rng = to_timedelta ('1 days, 10:11:12' )
Original file line number Diff line number Diff line change 14
14
import pandas .tseries .offsets as offsets
15
15
import pandas .util .testing as tm
16
16
from pandas .util .testing import assert_series_equal
17
+ import pandas .compat as compat
18
+
17
19
18
20
class TestTimestamp (tm .TestCase ):
19
21
@@ -373,7 +375,7 @@ def test_fields(self):
373
375
374
376
def check (value , equal ):
375
377
# that we are int/long like
376
- self .assertTrue (isinstance (value , (int , long )))
378
+ self .assertTrue (isinstance (value , (int , compat . long )))
377
379
self .assertEqual (value , equal )
378
380
379
381
# GH 10050
You can’t perform that action at this time.
0 commit comments