We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72d9b7b commit 303a01fCopy full SHA for 303a01f
pandas/tests/series/test_constructors.py
@@ -693,7 +693,7 @@ def test_constructor_with_datetime_tz(self):
693
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
694
# GH 17415: With naive string
695
result = Series([arg], dtype='datetime64[ns, CET]')
696
- expected = Series([pd.Timestamp(arg, tz='CET')])
+ expected = Series(pd.Timestamp(arg)).dt.tz_localize('CET')
697
assert_series_equal(result, expected)
698
699
def test_construction_interval(self):
0 commit comments