Skip to content

Commit 173c686

Browse files
committed
TST: dtype comparisons on windows in test_generic.py
1 parent ebe6032 commit 173c686

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*~
12
*.pyc
23
*.pyo
34
*.swp

pandas/tests/test_generic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -813,18 +813,18 @@ def test_interp_inplace(self):
813813

814814
result = df.copy()
815815
result['a'].interpolate(inplace=True, downcast='infer')
816-
assert_frame_equal(result, expected.astype('int'))
816+
assert_frame_equal(result, expected.astype('int64'))
817817

818818
def test_interp_ignore_all_good(self):
819819
# GH
820820
df = DataFrame({'A': [1, 2, np.nan, 4],
821821
'B': [1, 2, 3, 4],
822822
'C': [1., 2., np.nan, 4.],
823823
'D': [1., 2., 3., 4.]})
824-
expected = DataFrame({'A': np.array([1, 2, 3, 4], dtype='float'),
825-
'B': np.array([1, 2, 3, 4], dtype='int'),
826-
'C': np.array([1., 2., 3, 4.], dtype='float'),
827-
'D': np.array([1., 2., 3., 4.], dtype='float')})
824+
expected = DataFrame({'A': np.array([1, 2, 3, 4], dtype='float64'),
825+
'B': np.array([1, 2, 3, 4], dtype='int64'),
826+
'C': np.array([1., 2., 3, 4.], dtype='float64'),
827+
'D': np.array([1., 2., 3., 4.], dtype='float64')})
828828

829829
result = df.interpolate(downcast=None)
830830
assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)