From 99250e8ed36d133e2acf53402b3cabde0937f78f Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Tue, 7 Jan 2020 16:00:14 +0200 Subject: [PATCH 1/3] STY: Spaces in wrong place --- pandas/tests/arrays/categorical/test_api.py | 4 +-- .../tests/arrays/categorical/test_indexing.py | 4 +-- .../arrays/categorical/test_operators.py | 4 +-- pandas/tests/arrays/categorical/test_repr.py | 25 ++++++++++--------- pandas/tests/arrays/test_integer.py | 6 ++--- pandas/tests/arrays/test_period.py | 14 +++++------ pandas/tests/frame/methods/test_quantile.py | 4 +-- pandas/tests/io/formats/test_format.py | 12 ++++----- pandas/tests/io/formats/test_style.py | 12 +++------ pandas/tests/io/formats/test_to_html.py | 14 +++++------ pandas/tests/io/test_stata.py | 8 +++--- pandas/tests/series/indexing/test_boolean.py | 4 +-- pandas/tests/series/indexing/test_indexing.py | 4 +-- pandas/tests/series/methods/test_rank.py | 3 +-- .../tests/series/methods/test_sort_values.py | 4 +-- pandas/tests/series/test_alter_axes.py | 4 +-- pandas/tests/series/test_missing.py | 4 +-- pandas/tests/series/test_timeseries.py | 5 +--- 18 files changed, 64 insertions(+), 71 deletions(-) diff --git a/pandas/tests/arrays/categorical/test_api.py b/pandas/tests/arrays/categorical/test_api.py index df6623acfefee..f49f70f5acf77 100644 --- a/pandas/tests/arrays/categorical/test_api.py +++ b/pandas/tests/arrays/categorical/test_api.py @@ -87,8 +87,8 @@ def test_rename_categories(self): def test_rename_categories_wrong_length_raises(self, new_categories): cat = Categorical(["a", "b", "c", "a"]) msg = ( - "new categories need to have the same number of items as the" - " old categories!" + "new categories need to have the same number of items as the " + "old categories!" ) with pytest.raises(ValueError, match=msg): cat.rename_categories(new_categories) diff --git a/pandas/tests/arrays/categorical/test_indexing.py b/pandas/tests/arrays/categorical/test_indexing.py index 8ff6a4709c0d7..85d5a6a3dc3ac 100644 --- a/pandas/tests/arrays/categorical/test_indexing.py +++ b/pandas/tests/arrays/categorical/test_indexing.py @@ -157,8 +157,8 @@ def test_categories_assigments(self): def test_categories_assigments_wrong_length_raises(self, new_categories): cat = Categorical(["a", "b", "c", "a"]) msg = ( - "new categories need to have the same number of items" - " as the old categories!" + "new categories need to have the same number of items " + "as the old categories!" ) with pytest.raises(ValueError, match=msg): cat.categories = new_categories diff --git a/pandas/tests/arrays/categorical/test_operators.py b/pandas/tests/arrays/categorical/test_operators.py index f58524a86b4aa..8643e7f6f89c1 100644 --- a/pandas/tests/arrays/categorical/test_operators.py +++ b/pandas/tests/arrays/categorical/test_operators.py @@ -172,8 +172,8 @@ def test_comparison_with_unknown_scalars(self): cat = Categorical([1, 2, 3], ordered=True) msg = ( - "Cannot compare a Categorical for op __{}__ with a scalar," - " which is not a category" + "Cannot compare a Categorical for op __{}__ with a scalar, " + "which is not a category" ) with pytest.raises(TypeError, match=msg.format("lt")): cat < 4 diff --git a/pandas/tests/arrays/categorical/test_repr.py b/pandas/tests/arrays/categorical/test_repr.py index d08c4b47dd3cb..5c36e8a122240 100644 --- a/pandas/tests/arrays/categorical/test_repr.py +++ b/pandas/tests/arrays/categorical/test_repr.py @@ -151,8 +151,9 @@ def test_categorical_repr_datetime(self): "[2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, " "2011-01-01 12:00:00, 2011-01-01 13:00:00]\n" "Categories (5, datetime64[ns]): [2011-01-01 09:00:00, " - "2011-01-01 10:00:00, 2011-01-01 11:00:00,\n" - " 2011-01-01 12:00:00, " + "2011-01-01 10:00:00, 2011-01-01 11:00:00," + "\n " + "2011-01-01 12:00:00, " "2011-01-01 13:00:00]" "" ) @@ -165,8 +166,8 @@ def test_categorical_repr_datetime(self): "2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, " "2011-01-01 13:00:00]\n" "Categories (5, datetime64[ns]): [2011-01-01 09:00:00, " - "2011-01-01 10:00:00, 2011-01-01 11:00:00,\n" - " 2011-01-01 12:00:00, " + "2011-01-01 10:00:00, 2011-01-01 11:00:00," + "\n 2011-01-01 12:00:00, " "2011-01-01 13:00:00]" ) @@ -179,10 +180,10 @@ def test_categorical_repr_datetime(self): "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, " "2011-01-01 13:00:00-05:00]\n" "Categories (5, datetime64[ns, US/Eastern]): " - "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,\n" - " " - "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,\n" - " " + "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00," + "\n " + "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00," + "\n " "2011-01-01 13:00:00-05:00]" ) @@ -196,10 +197,10 @@ def test_categorical_repr_datetime(self): "2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, " "2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]\n" "Categories (5, datetime64[ns, US/Eastern]): " - "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,\n" - " " - "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,\n" - " " + "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00," + "\n " + "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00," + "\n " "2011-01-01 13:00:00-05:00]" ) diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index 6a3ef75157d5d..617b46a9dd03f 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -98,9 +98,9 @@ def test_repr_array_long(): data = integer_array([1, 2, None] * 1000) expected = ( "\n" - "[ 1, 2, NA, 1, 2, NA, 1, 2, NA, 1,\n" - " ...\n" - " NA, 1, 2, NA, 1, 2, NA, 1, 2, NA]\n" + "[ 1, 2, NA, 1, 2, NA, 1, 2, NA, 1,\n " + "...\n " + "NA, 1, 2, NA, 1, 2, NA, 1, 2, NA]\n" "Length: 3000, dtype: Int64" ) result = repr(data) diff --git a/pandas/tests/arrays/test_period.py b/pandas/tests/arrays/test_period.py index 5068e8d57e1de..1faeefa8ee4d0 100644 --- a/pandas/tests/arrays/test_period.py +++ b/pandas/tests/arrays/test_period.py @@ -270,13 +270,13 @@ def test_repr_large(): expected = ( "\n" "['2000-01-01', '2001-01-01', '2000-01-01', '2001-01-01', " - "'2000-01-01',\n" - " '2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " - "'2001-01-01',\n" - " ...\n" - " '2000-01-01', '2001-01-01', '2000-01-01', '2001-01-01', " - "'2000-01-01',\n" - " '2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " + "'2000-01-01',\n " + "'2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " + "'2001-01-01',\n " + "...\n " + "'2000-01-01', '2001-01-01', '2000-01-01', '2001-01-01', " + "'2000-01-01',\n " + "'2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " "'2001-01-01']\n" "Length: 1000, dtype: period[D]" ) diff --git a/pandas/tests/frame/methods/test_quantile.py b/pandas/tests/frame/methods/test_quantile.py index 9ad2417592fe1..64461c08d34f4 100644 --- a/pandas/tests/frame/methods/test_quantile.py +++ b/pandas/tests/frame/methods/test_quantile.py @@ -103,8 +103,8 @@ def test_quantile_axis_parameter(self): with pytest.raises(ValueError, match=msg): df.quantile(0.1, axis=-1) msg = ( - "No axis named column for object type" - " " + "No axis named column for object type " + "" ) with pytest.raises(ValueError, match=msg): df.quantile(0.1, axis="column") diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index b70a006ca3603..c0d6f14b2ae07 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -2402,8 +2402,8 @@ def test_east_asian_unicode_series(self): s.index = ["ああ", "いいいい", "う", "えええ"] expected = ( - "ああ あ\n" - " ... \n" + "ああ あ\n " + "... \n" "えええ ええええ\n" "Name: おおおおおおお, Length: 4, dtype: object" ) @@ -2659,14 +2659,14 @@ def test_format_explicit(self): assert exp == res res = repr(test_sers["asc"]) exp = ( - "0 a\n1 ab\n ... \n4 abcde\n5" - " abcdef\ndtype: object" + "0 a\n1 ab\n ... \n4 abcde\n5 " + "abcdef\ndtype: object" ) assert exp == res res = repr(test_sers["desc"]) exp = ( - "5 abcdef\n4 abcde\n ... \n1 ab\n0" - " a\ndtype: object" + "5 abcdef\n4 abcde\n ... \n1 ab\n0 " + "a\ndtype: object" ) assert exp == res diff --git a/pandas/tests/io/formats/test_style.py b/pandas/tests/io/formats/test_style.py index d4c5414c301f9..e5dac18acedf6 100644 --- a/pandas/tests/io/formats/test_style.py +++ b/pandas/tests/io/formats/test_style.py @@ -530,20 +530,17 @@ def test_bar_align_left_0points(self): (1, 0): [ "width: 10em", " height: 80%", - "background: linear-gradient(90deg,#d65f5f 50.0%," - " transparent 50.0%)", + "background: linear-gradient(90deg,#d65f5f 50.0%, transparent 50.0%)", ], (1, 1): [ "width: 10em", " height: 80%", - "background: linear-gradient(90deg,#d65f5f 50.0%," - " transparent 50.0%)", + "background: linear-gradient(90deg,#d65f5f 50.0%, transparent 50.0%)", ], (1, 2): [ "width: 10em", " height: 80%", - "background: linear-gradient(90deg,#d65f5f 50.0%," - " transparent 50.0%)", + "background: linear-gradient(90deg,#d65f5f 50.0%, transparent 50.0%)", ], (2, 0): [ "width: 10em", @@ -572,8 +569,7 @@ def test_bar_align_left_0points(self): (0, 1): [ "width: 10em", " height: 80%", - "background: linear-gradient(90deg,#d65f5f 50.0%," - " transparent 50.0%)", + "background: linear-gradient(90deg,#d65f5f 50.0%, transparent 50.0%)", ], (0, 2): [ "width: 10em", diff --git a/pandas/tests/io/formats/test_to_html.py b/pandas/tests/io/formats/test_to_html.py index 060072e5103f4..d3f044a42eb28 100644 --- a/pandas/tests/io/formats/test_to_html.py +++ b/pandas/tests/io/formats/test_to_html.py @@ -12,13 +12,13 @@ import pandas.io.formats.format as fmt lorem_ipsum = ( - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod" - " tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim" - " veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex" - " ea commodo consequat. Duis aute irure dolor in reprehenderit in" - " voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur" - " sint occaecat cupidatat non proident, sunt in culpa qui officia" - " deserunt mollit anim id est laborum." + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod " + "tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim " + "veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex " + "ea commodo consequat. Duis aute irure dolor in reprehenderit in " + "voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur " + "sint occaecat cupidatat non proident, sunt in culpa qui officia " + "deserunt mollit anim id est laborum." ) diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py index 9e34abd43ad6b..1d3cddbf01738 100644 --- a/pandas/tests/io/test_stata.py +++ b/pandas/tests/io/test_stata.py @@ -1296,8 +1296,8 @@ def test_write_variable_label_errors(self): } msg = ( - "Variable labels must contain only characters that can be" - " encoded in Latin-1" + "Variable labels must contain only characters that can be " + "encoded in Latin-1" ) with pytest.raises(ValueError, match=msg): with tm.ensure_clean() as path: @@ -1467,8 +1467,8 @@ def test_out_of_range_float(self): original.loc[2, "ColumnTooBig"] = np.inf msg = ( - "Column ColumnTooBig has a maximum value of infinity which" - " is outside the range supported by Stata" + "Column ColumnTooBig has a maximum value of infinity which " + "is outside the range supported by Stata" ) with pytest.raises(ValueError, match=msg): with tm.ensure_clean() as path: diff --git a/pandas/tests/series/indexing/test_boolean.py b/pandas/tests/series/indexing/test_boolean.py index e3acc0f5d6457..d75efcf52c271 100644 --- a/pandas/tests/series/indexing/test_boolean.py +++ b/pandas/tests/series/indexing/test_boolean.py @@ -285,8 +285,8 @@ def test_where_error(): with pytest.raises(ValueError, match=msg): s[[True, False]] = [0, 2, 3] msg = ( - "NumPy boolean array indexing assignment cannot assign 0 input" - " values to the 1 output values where the mask is true" + "NumPy boolean array indexing assignment cannot assign 0 input " + "values to the 1 output values where the mask is true" ) with pytest.raises(ValueError, match=msg): s[[True, False]] = [] diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py index e62963bcfb5f9..4601cabf69b52 100644 --- a/pandas/tests/series/indexing/test_indexing.py +++ b/pandas/tests/series/indexing/test_indexing.py @@ -294,8 +294,8 @@ def test_getitem_dataframe(): s = pd.Series(10, index=rng) df = pd.DataFrame(rng, index=rng) msg = ( - "Indexing a Series with DataFrame is not supported," - " use the appropriate DataFrame column" + "Indexing a Series with DataFrame is not supported, " + "use the appropriate DataFrame column" ) with pytest.raises(TypeError, match=msg): s[df > 5] diff --git a/pandas/tests/series/methods/test_rank.py b/pandas/tests/series/methods/test_rank.py index 1d538e06ccc4e..3d4688c8274f9 100644 --- a/pandas/tests/series/methods/test_rank.py +++ b/pandas/tests/series/methods/test_rank.py @@ -203,8 +203,7 @@ def test_rank_signature(self): s = Series([0, 1]) s.rank(method="average") msg = ( - "No axis named average for object type" - " " + "No axis named average for object type " ) with pytest.raises(ValueError, match=msg): s.rank("average") diff --git a/pandas/tests/series/methods/test_sort_values.py b/pandas/tests/series/methods/test_sort_values.py index a3017480ad9d7..caa2abd61af6a 100644 --- a/pandas/tests/series/methods/test_sort_values.py +++ b/pandas/tests/series/methods/test_sort_values.py @@ -77,8 +77,8 @@ def test_sort_values(self, datetime_series): s = df.iloc[:, 0] msg = ( - "This Series is a view of some other array, to sort in-place" - " you must create a copy" + "This Series is a view of some other array, to sort in-place " + "you must create a copy" ) with pytest.raises(ValueError, match=msg): s.sort_values(inplace=True) diff --git a/pandas/tests/series/test_alter_axes.py b/pandas/tests/series/test_alter_axes.py index 62ff0a075d2ca..c40efd1e0bf1b 100644 --- a/pandas/tests/series/test_alter_axes.py +++ b/pandas/tests/series/test_alter_axes.py @@ -19,8 +19,8 @@ def test_setindex(self, string_series): # wrong length msg = ( - "Length mismatch: Expected axis has 30 elements, new" - " values have 29 elements" + "Length mismatch: Expected axis has 30 elements, " + "new values have 29 elements" ) with pytest.raises(ValueError, match=msg): string_series.index = np.arange(len(string_series) - 1) diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index 3972e7ff4f3f4..7b6d9210ed3d9 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -1180,8 +1180,8 @@ def test_interpolate_index_values(self): def test_interpolate_non_ts(self): s = Series([1, 3, np.nan, np.nan, np.nan, 11]) msg = ( - "time-weighted interpolation only works on Series or DataFrames" - " with a DatetimeIndex" + "time-weighted interpolation only works on Series or DataFrames " + "with a DatetimeIndex" ) with pytest.raises(ValueError, match=msg): s.interpolate(method="time") diff --git a/pandas/tests/series/test_timeseries.py b/pandas/tests/series/test_timeseries.py index 9f6cf155c7c51..a135c0cf7cd7e 100644 --- a/pandas/tests/series/test_timeseries.py +++ b/pandas/tests/series/test_timeseries.py @@ -501,10 +501,7 @@ def test_between_time_raises(self): def test_between_time_types(self): # GH11818 rng = date_range("1/1/2000", "1/5/2000", freq="5min") - msg = ( - r"Cannot convert arg \[datetime\.datetime\(2010, 1, 2, 1, 0\)\]" - " to a time" - ) + msg = r"Cannot convert arg \[datetime\.datetime\(2010, 1, 2, 1, 0\)\] to a time" with pytest.raises(ValueError, match=msg): rng.indexer_between_time(datetime(2010, 1, 2, 1), datetime(2010, 1, 2, 5)) From 6e176a18a20b7ebf10e29c9708ae5aa57933e5b3 Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Wed, 8 Jan 2020 19:51:40 +0200 Subject: [PATCH 2/3] Reverted some strings back to the original --- pandas/tests/arrays/categorical/test_repr.py | 25 ++++++++++---------- pandas/tests/io/formats/test_format.py | 4 ++-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/pandas/tests/arrays/categorical/test_repr.py b/pandas/tests/arrays/categorical/test_repr.py index 5c36e8a122240..d08c4b47dd3cb 100644 --- a/pandas/tests/arrays/categorical/test_repr.py +++ b/pandas/tests/arrays/categorical/test_repr.py @@ -151,9 +151,8 @@ def test_categorical_repr_datetime(self): "[2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, " "2011-01-01 12:00:00, 2011-01-01 13:00:00]\n" "Categories (5, datetime64[ns]): [2011-01-01 09:00:00, " - "2011-01-01 10:00:00, 2011-01-01 11:00:00," - "\n " - "2011-01-01 12:00:00, " + "2011-01-01 10:00:00, 2011-01-01 11:00:00,\n" + " 2011-01-01 12:00:00, " "2011-01-01 13:00:00]" "" ) @@ -166,8 +165,8 @@ def test_categorical_repr_datetime(self): "2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, " "2011-01-01 13:00:00]\n" "Categories (5, datetime64[ns]): [2011-01-01 09:00:00, " - "2011-01-01 10:00:00, 2011-01-01 11:00:00," - "\n 2011-01-01 12:00:00, " + "2011-01-01 10:00:00, 2011-01-01 11:00:00,\n" + " 2011-01-01 12:00:00, " "2011-01-01 13:00:00]" ) @@ -180,10 +179,10 @@ def test_categorical_repr_datetime(self): "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, " "2011-01-01 13:00:00-05:00]\n" "Categories (5, datetime64[ns, US/Eastern]): " - "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00," - "\n " - "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00," - "\n " + "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,\n" + " " + "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,\n" + " " "2011-01-01 13:00:00-05:00]" ) @@ -197,10 +196,10 @@ def test_categorical_repr_datetime(self): "2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, " "2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]\n" "Categories (5, datetime64[ns, US/Eastern]): " - "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00," - "\n " - "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00," - "\n " + "[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,\n" + " " + "2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,\n" + " " "2011-01-01 13:00:00-05:00]" ) diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index c0d6f14b2ae07..97956489e7da6 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -2402,8 +2402,8 @@ def test_east_asian_unicode_series(self): s.index = ["ああ", "いいいい", "う", "えええ"] expected = ( - "ああ あ\n " - "... \n" + "ああ あ\n" + " ... \n" "えええ ええええ\n" "Name: おおおおおおお, Length: 4, dtype: object" ) From 4d65dbe1f393196f7a908401ba35f2b5585127ee Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Thu, 9 Jan 2020 02:12:48 +0200 Subject: [PATCH 3/3] Reverted a few lines --- pandas/tests/arrays/test_integer.py | 6 +++--- pandas/tests/arrays/test_period.py | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index 617b46a9dd03f..6a3ef75157d5d 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -98,9 +98,9 @@ def test_repr_array_long(): data = integer_array([1, 2, None] * 1000) expected = ( "\n" - "[ 1, 2, NA, 1, 2, NA, 1, 2, NA, 1,\n " - "...\n " - "NA, 1, 2, NA, 1, 2, NA, 1, 2, NA]\n" + "[ 1, 2, NA, 1, 2, NA, 1, 2, NA, 1,\n" + " ...\n" + " NA, 1, 2, NA, 1, 2, NA, 1, 2, NA]\n" "Length: 3000, dtype: Int64" ) result = repr(data) diff --git a/pandas/tests/arrays/test_period.py b/pandas/tests/arrays/test_period.py index 1faeefa8ee4d0..5068e8d57e1de 100644 --- a/pandas/tests/arrays/test_period.py +++ b/pandas/tests/arrays/test_period.py @@ -270,13 +270,13 @@ def test_repr_large(): expected = ( "\n" "['2000-01-01', '2001-01-01', '2000-01-01', '2001-01-01', " - "'2000-01-01',\n " - "'2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " - "'2001-01-01',\n " - "...\n " - "'2000-01-01', '2001-01-01', '2000-01-01', '2001-01-01', " - "'2000-01-01',\n " - "'2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " + "'2000-01-01',\n" + " '2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " + "'2001-01-01',\n" + " ...\n" + " '2000-01-01', '2001-01-01', '2000-01-01', '2001-01-01', " + "'2000-01-01',\n" + " '2001-01-01', '2000-01-01', '2001-01-01', '2000-01-01', " "'2001-01-01']\n" "Length: 1000, dtype: period[D]" )