Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb10828

Browse files
committedJan 11, 2018
Correct to a more appropriate test
1 parent 18e914b commit bb10828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pandas/tests/series/test_constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def test_constructor_with_datetime_tz(self):
712712
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
713713
# GH 17415: With naive string
714714
result = Series([arg], dtype='datetime64[ns, CET]')
715-
expected = Series([pd.Timestamp(arg, tz='CET')])
715+
expected = Series(pd.Timestamp(arg)).dt.tz_localize('CET')
716716
assert_series_equal(result, expected)
717717

718718
def test_construction_interval(self):

0 commit comments

Comments
 (0)
Please sign in to comment.