Skip to content

Commit 18e914b

Browse files
committed
fix failing test and rebase
1 parent 735f35b commit 18e914b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pandas/core/dtypes/cast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ def maybe_cast_to_datetime(value, dtype, errors='raise'):
10031003
if is_datetime64:
10041004
value = to_datetime(value, errors=errors)._values
10051005
elif is_datetime64tz:
1006-
# This block can be simplified once PR #17413 is
1006+
# This block can be simplified once PR #17413 is
10071007
# complete
10081008
is_dt_string = is_string_dtype(value)
10091009
value = to_datetime(value, errors=errors)

pandas/tests/series/test_constructors.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,9 @@ def test_constructor_with_datetime_tz(self):
707707
expected = Series(pd.DatetimeIndex(['NaT', 'NaT'], tz='US/Eastern'))
708708
assert_series_equal(s, expected)
709709

710-
@pytest.mark.parametrize('arg, dtype',
710+
@pytest.mark.parametrize('arg',
711711
['2013-01-01 00:00:00', pd.NaT, np.nan, None])
712-
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg,
713-
dtype):
712+
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
714713
# GH 17415: With naive string
715714
result = Series([arg], dtype='datetime64[ns, CET]')
716715
expected = Series([pd.Timestamp(arg, tz='CET')])

0 commit comments

Comments
 (0)