Skip to content

Commit ea52fc3

Browse files
committed
TST: win32 test fixes (GH5711)
1 parent 2792e2d commit ea52fc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/test_indexing.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ def test_astype_assignment(self):
13821382
df_orig = DataFrame([['1','2','3','.4',5,6.,'foo']],columns=list('ABCDEFG'))
13831383

13841384
df = df_orig.copy()
1385-
df.iloc[:,0:2] = df.iloc[:,0:2].astype(int)
1385+
df.iloc[:,0:2] = df.iloc[:,0:2].astype(np.int64)
13861386
expected = DataFrame([[1,2,'3','.4',5,6.,'foo']],columns=list('ABCDEFG'))
13871387
assert_frame_equal(df,expected)
13881388

@@ -1393,12 +1393,12 @@ def test_astype_assignment(self):
13931393

13941394
# GH5702 (loc)
13951395
df = df_orig.copy()
1396-
df.loc[:,'A'] = df.loc[:,'A'].astype(int)
1396+
df.loc[:,'A'] = df.loc[:,'A'].astype(np.int64)
13971397
expected = DataFrame([[1,'2','3','.4',5,6.,'foo']],columns=list('ABCDEFG'))
13981398
assert_frame_equal(df,expected)
13991399

14001400
df = df_orig.copy()
1401-
df.loc[:,['B','C']] = df.loc[:,['B','C']].astype(int)
1401+
df.loc[:,['B','C']] = df.loc[:,['B','C']].astype(np.int64)
14021402
expected = DataFrame([['1',2,3,'.4',5,6.,'foo']],columns=list('ABCDEFG'))
14031403
assert_frame_equal(df,expected)
14041404

pandas/tests/test_series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ def f():
13451345

13461346
s[0:3] = list(range(3))
13471347
expected = Series([0,1,2])
1348-
assert_series_equal(s, expected)
1348+
assert_series_equal(s.astype(np.int64), expected, )
13491349

13501350
# slice with step
13511351
s = Series(list('abcdef'))

0 commit comments

Comments
 (0)