File tree 2 files changed +20
-0
lines changed 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,16 @@ def test_construction_with_ndarray(self):
307
307
freq = 'B' )
308
308
tm .assert_index_equal (result , expected )
309
309
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
+
310
320
def test_constructor_coverage (self ):
311
321
rng = date_range ('1/1/2000' , periods = 10.5 )
312
322
exp = date_range ('1/1/2000' , periods = 10 )
Original file line number Diff line number Diff line change 10
10
11
11
class TestTimedeltaIndex (object ):
12
12
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
+
13
23
def test_int64_nocopy (self ):
14
24
# GH#23539 check that a copy isn't made when we pass int64 data
15
25
# and copy=False
You can’t perform that action at this time.
0 commit comments