Skip to content

Commit afdab5b

Browse files
committed
targeted tests
1 parent d67f87c commit afdab5b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pandas/tests/indexes/datetimes/test_construction.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,16 @@ def test_construction_with_ndarray(self):
307307
freq='B')
308308
tm.assert_index_equal(result, expected)
309309

310+
def test_verify_integrity_deprecated(self):
311+
# GH#23919
312+
with tm.assert_produces_warning(FutureWarning):
313+
DatetimeIndex(['1/1/2000'], verify_integrity=False)
314+
315+
def test_range_kwargs_deprecated(self):
316+
# GH#23919
317+
with tm.assert_produces_warning(FutureWarning):
318+
DatetimeIndex(start='1/1/2000', end='1/10/2000', freq='D')
319+
310320
def test_constructor_coverage(self):
311321
rng = date_range('1/1/2000', periods=10.5)
312322
exp = date_range('1/1/2000', periods=10)

pandas/tests/indexes/timedeltas/test_construction.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010

1111
class TestTimedeltaIndex(object):
1212

13+
def test_verify_integrity_deprecated(self):
14+
# GH#23919
15+
with tm.assert_produces_warning(FutureWarning):
16+
TimedeltaIndex(['1 Day'], verify_integrity=False)
17+
18+
def test_range_kwargs_deprecated(self):
19+
# GH#23919
20+
with tm.assert_produces_warning(FutureWarning):
21+
timedelta_range(start='1 Day', end='3 Days', freq='D')
22+
1323
def test_int64_nocopy(self):
1424
# GH#23539 check that a copy isn't made when we pass int64 data
1525
# and copy=False

0 commit comments

Comments
 (0)