Skip to content

Commit c44f1f3

Browse files
author
MomIsBestFriend
committed
Reverted some strings back to the original
1 parent 4ef66bc commit c44f1f3

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

pandas/tests/arrays/categorical/test_repr.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,12 @@ def test_categorical_repr_datetime(self):
147147
idx = date_range("2011-01-01 09:00", freq="H", periods=5)
148148
c = Categorical(idx)
149149

150-
# TODO(wesm): exceeding 80 characters in the console is not good
151-
# behavior
152150
exp = (
153151
"[2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, "
154152
"2011-01-01 12:00:00, 2011-01-01 13:00:00]\n"
155153
"Categories (5, datetime64[ns]): [2011-01-01 09:00:00, "
156-
"2011-01-01 10:00:00, 2011-01-01 11:00:00,"
157-
"\n "
158-
"2011-01-01 12:00:00, "
154+
"2011-01-01 10:00:00, 2011-01-01 11:00:00,\n"
155+
" 2011-01-01 12:00:00, "
159156
"2011-01-01 13:00:00]"
160157
""
161158
)
@@ -168,8 +165,8 @@ def test_categorical_repr_datetime(self):
168165
"2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, "
169166
"2011-01-01 13:00:00]\n"
170167
"Categories (5, datetime64[ns]): [2011-01-01 09:00:00, "
171-
"2011-01-01 10:00:00, 2011-01-01 11:00:00,"
172-
"\n 2011-01-01 12:00:00, "
168+
"2011-01-01 10:00:00, 2011-01-01 11:00:00,\n"
169+
" 2011-01-01 12:00:00, "
173170
"2011-01-01 13:00:00]"
174171
)
175172

@@ -182,10 +179,10 @@ def test_categorical_repr_datetime(self):
182179
"2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, "
183180
"2011-01-01 13:00:00-05:00]\n"
184181
"Categories (5, datetime64[ns, US/Eastern]): "
185-
"[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,"
186-
"\n "
187-
"2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,"
188-
"\n "
182+
"[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,\n"
183+
" "
184+
"2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,\n"
185+
" "
189186
"2011-01-01 13:00:00-05:00]"
190187
)
191188

@@ -199,10 +196,10 @@ def test_categorical_repr_datetime(self):
199196
"2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, "
200197
"2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]\n"
201198
"Categories (5, datetime64[ns, US/Eastern]): "
202-
"[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,"
203-
"\n "
204-
"2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,"
205-
"\n "
199+
"[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,\n"
200+
" "
201+
"2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,\n"
202+
" "
206203
"2011-01-01 13:00:00-05:00]"
207204
)
208205

pandas/tests/io/formats/test_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,8 +2402,8 @@ def test_east_asian_unicode_series(self):
24022402

24032403
s.index = ["ああ", "いいいい", "う", "えええ"]
24042404
expected = (
2405-
"ああ あ\n "
2406-
"... \n"
2405+
"ああ あ\n"
2406+
" ... \n"
24072407
"えええ ええええ\n"
24082408
"Name: おおおおおおお, Length: 4, dtype: object"
24092409
)

0 commit comments

Comments
 (0)