File tree 1 file changed +8
-13
lines changed
1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -2776,20 +2776,15 @@ def test_to_datetime_monotonic_increasing_index(cache):
2776
2776
2777
2777
2778
2778
@pytest .mark .parametrize (
2779
- "input" ,
2780
- [
2781
- Series (
2782
- [datetime .fromisoformat ("1446-04-12 00:00:00+00:00" )]
2783
- + ([datetime .fromisoformat ("1991-10-20 00:00:00+00:00" )] * 40 )
2784
- ),
2785
- Series (
2786
- [datetime .fromisoformat ("1446-04-12 00:00:00+00:00" )]
2787
- + ([datetime .fromisoformat ("1991-10-20 00:00:00+00:00" )] * 50 )
2788
- ),
2789
- ],
2779
+ "series_length" ,
2780
+ range (40 , start_caching_at + 5 ),
2790
2781
)
2791
- def test_to_datetime_cache_coerce_50_lines (input ):
2782
+ def test_to_datetime_cache_coerce_50_lines (series_length ):
2792
2783
# GH#45319
2793
- result = to_datetime (input , errors = "coerce" , utc = True )
2784
+ s = Series (
2785
+ [datetime .fromisoformat ("1446-04-12 00:00:00+00:00" )]
2786
+ + ([datetime .fromisoformat ("1991-10-20 00:00:00+00:00" )] * series_length )
2787
+ )
2788
+ result = to_datetime (s , errors = "coerce" , utc = True )
2794
2789
2795
2790
assert result [0 ] is NaT
You can’t perform that action at this time.
0 commit comments