Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Mar 6, 2017
1 parent fc6f593 commit d0ec6bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pandas/tests/scalar/test_timestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def test_nat_vector_field_access(self):
for field in fields:
result = getattr(idx, field)
expected = [getattr(x, field) for x in idx]
self.assert_numpy_array_equal(result, np.array(expected))
self.assert_index_equal(result, pd.Index(expected))

s = pd.Series(idx)

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/tools/test_pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ def test_daily(self):
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
annual = pivot_annual(ts, 'D')

doy = ts.index.dayofyear
doy = np.asarray(ts.index.dayofyear)

with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
doy[(~isleapyear(ts.index.year)) & (doy >= 60)] += 1
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/tseries/test_timezones.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def test_field_access_localize(self):
dr = date_range('2011-10-02 00:00', freq='h', periods=10,
tz=self.tzstr('America/Atikokan'))

expected = pd.Index(np.arange(10, dtype=np.int64))
expected = Index(np.arange(10, dtype=np.int64))
self.assert_index_equal(dr.hour, expected)

def test_with_tz(self):
Expand Down

0 comments on commit d0ec6bf

Please sign in to comment.