Skip to content

Commit 6df3068

Browse files
remove assert_produces_warning added in TST/REF: collect tests by method, some misplaced pandas-dev#37354
1 parent 463a4db commit 6df3068

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/series/test_constructors.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1623,8 +1623,7 @@ def test_constructor_infer_index_tz(self):
16231623
class TestSeriesConstructorIndexCoercion:
16241624
def test_series_constructor_datetimelike_index_coercion(self):
16251625
idx = tm.makeDateIndex(10000)
1626-
with tm.assert_produces_warning(FutureWarning):
1627-
ser = Series(np.random.randn(len(idx)), idx.astype(object))
1626+
ser = Series(np.random.randn(len(idx)), idx.astype(object))
16281627
with tm.assert_produces_warning(FutureWarning):
16291628
assert ser.index.is_all_dates
16301629
assert isinstance(ser.index, DatetimeIndex)

0 commit comments

Comments
 (0)