Skip to content

Commit 071227b

Browse files
committed
fix failing test and rebase
1 parent b2e9209 commit 071227b

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
@@ -688,10 +688,9 @@ def test_constructor_with_datetime_tz(self):
688688
expected = Series(pd.DatetimeIndex(['NaT', 'NaT'], tz='US/Eastern'))
689689
assert_series_equal(s, expected)
690690

691-
@pytest.mark.parametrize('arg, dtype',
691+
@pytest.mark.parametrize('arg',
692692
['2013-01-01 00:00:00', pd.NaT, np.nan, None])
693-
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg,
694-
dtype):
693+
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
695694
# GH 17415: With naive string
696695
result = Series([arg], dtype='datetime64[ns, CET]')
697696
expected = Series([pd.Timestamp(arg, tz='CET')])

0 commit comments

Comments
 (0)