Skip to content

Commit 7634487

Browse files
committed
CLN: fix test name and array_with_unit_to_datetime docstring
1 parent 7094daa commit 7634487

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pandas/_libs/tslib.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,9 @@ def array_with_unit_to_datetime(ndarray values, ndarray mask, object unit,
316316
----------
317317
values : ndarray of object
318318
Date-like objects to convert
319-
mask : ndarray of bool, default None
320-
Not-a-time mask for non-nullable integer types conversion
319+
mask : ndarray of bool
320+
Not-a-time mask for non-nullable integer types conversion,
321+
can be None
321322
unit : object
322323
Time unit to use during conversion
323324
errors : str, default 'raise'

pandas/tests/indexes/datetimes/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ def test_should_cache_errors(unique_share, check_count, err_message):
22932293
tools.should_cache(arg, unique_share, check_count)
22942294

22952295

2296-
def test_intarray_to_datetime():
2296+
def test_nullable_integer_to_datetime():
22972297
# Test for #30050
22982298
ser = pd.Series([1, 2, None, 2 ** 61, None])
22992299
ser = ser.astype("Int64")

0 commit comments

Comments
 (0)