Skip to content

Commit

Permalink
TST: Fix two failing tests on Windows pandas-dev#10631
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Moisan committed Nov 17, 2015
1 parent b54f2db commit e9af149
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -11629,7 +11629,7 @@ def test_apply_mixed_dtype_corner(self):
result = df[:0].apply(np.mean, axis=1)
# the result here is actually kind of ambiguous, should it be a Series
# or a DataFrame?
expected = Series(np.nan, index=pd.Index([], dtype=int))
expected = Series(np.nan, index=pd.Index([], dtype='int64'))
assert_series_equal(result, expected)

df = DataFrame({'A': ['foo'],
Expand Down Expand Up @@ -15458,7 +15458,8 @@ def test_to_csv_with_dst_transitions(self):
ambiguous='infer')

for i in [times, times+pd.Timedelta('10s')]:
df = DataFrame({'A' : range(len(i))}, index=i)
time_range = np.array(range(len(i)), dtype='int64')
df = DataFrame({'A' : time_range}, index=i)
df.to_csv(path,index=True)

# we have to reconvert the index as we
Expand Down

0 comments on commit e9af149

Please sign in to comment.