From d42f9a112bdf1cd89092cc8c3d04e3c9874b45e2 Mon Sep 17 00:00:00 2001 From: OlivierLuG Date: Tue, 2 Jun 2020 23:24:14 +0200 Subject: [PATCH 1/3] rm slow fixtures for test_repr_info.py --- pandas/tests/frame/test_repr_info.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py index 6d786d9580542..1ddea11d0b102 100644 --- a/pandas/tests/frame/test_repr_info.py +++ b/pandas/tests/frame/test_repr_info.py @@ -34,7 +34,6 @@ def test_repr_mixed(self, float_string_frame): repr(float_string_frame) float_string_frame.info(verbose=False, buf=buf) - @pytest.mark.slow def test_repr_mixed_big(self): # big mixed biggie = DataFrame( @@ -81,7 +80,6 @@ def test_repr_dimensions(self): with option_context("display.show_dimensions", "truncate"): assert "2 rows x 2 columns" not in repr(df) - @pytest.mark.slow def test_repr_big(self): # big one biggie = DataFrame(np.zeros((200, 4)), columns=range(4), index=range(200)) From 69fab53382fe0301cfae23d8c14fd08e4d64f427 Mon Sep 17 00:00:00 2001 From: OlivierLuG Date: Wed, 3 Jun 2020 12:44:19 +0200 Subject: [PATCH 2/3] remove @pytest.mark.slow batch 1 --- pandas/tests/plotting/test_hist_method.py | 11 ----------- pandas/tests/plotting/test_misc.py | 5 ----- pandas/tests/reshape/test_pivot.py | 1 - pandas/tests/series/indexing/test_datetime.py | 1 - pandas/tests/test_multilevel.py | 1 - pandas/tests/test_sorting.py | 1 - 6 files changed, 20 deletions(-) diff --git a/pandas/tests/plotting/test_hist_method.py b/pandas/tests/plotting/test_hist_method.py index 5a30e9fbb91c6..69c03b000f2c2 100644 --- a/pandas/tests/plotting/test_hist_method.py +++ b/pandas/tests/plotting/test_hist_method.py @@ -46,13 +46,11 @@ def test_hist_legacy(self): with pytest.raises(ValueError): self.ts.hist(by=self.ts.index, figure=fig) - @pytest.mark.slow def test_hist_bins_legacy(self): df = DataFrame(np.random.randn(10, 2)) ax = df.hist(bins=2)[0][0] assert len(ax.patches) == 2 - @pytest.mark.slow def test_hist_layout(self): df = self.hist_df with pytest.raises(ValueError): @@ -99,7 +97,6 @@ def test_hist_layout_with_by(self): axes = df.height.hist(by=df.category, layout=(4, 2), figsize=(12, 7)) self._check_axes_shape(axes, axes_num=4, layout=(4, 2), figsize=(12, 7)) - @pytest.mark.slow def test_hist_no_overlap(self): from matplotlib.pyplot import subplot, gcf @@ -113,13 +110,11 @@ def test_hist_no_overlap(self): axes = fig.axes assert len(axes) == 2 - @pytest.mark.slow def test_hist_by_no_extra_plots(self): df = self.hist_df axes = df.height.hist(by=df.gender) # noqa assert len(self.plt.get_fignums()) == 1 - @pytest.mark.slow def test_plot_fails_when_ax_differs_from_figure(self): from pylab import figure @@ -201,7 +196,6 @@ def test_hist_df_legacy(self): with pytest.raises(AttributeError): ser.hist(foo="bar") - @pytest.mark.slow def test_hist_non_numerical_raises(self): # gh-10444 df = DataFrame(np.random.rand(10, 2)) @@ -357,7 +351,6 @@ def test_grouped_hist_legacy(self): with pytest.raises(ValueError, match=msg): df.hist(by="C", figsize="default") - @pytest.mark.slow def test_grouped_hist_legacy2(self): n = 10 weight = Series(np.random.normal(166, 20, size=n)) @@ -426,7 +419,6 @@ def test_grouped_hist_layout(self): axes = df.hist(column=["height", "weight", "category"]) self._check_axes_shape(axes, axes_num=3, layout=(2, 2)) - @pytest.mark.slow def test_grouped_hist_multiple_axes(self): # GH 6970, GH 7069 df = self.hist_df @@ -446,7 +438,6 @@ def test_grouped_hist_multiple_axes(self): # pass different number of axes from required axes = df.hist(column="height", ax=axes) - @pytest.mark.slow def test_axis_share_x(self): df = self.hist_df # GH4089 @@ -460,7 +451,6 @@ def test_axis_share_x(self): assert not ax1._shared_y_axes.joined(ax1, ax2) assert not ax2._shared_y_axes.joined(ax1, ax2) - @pytest.mark.slow def test_axis_share_y(self): df = self.hist_df ax1, ax2 = df.hist(column="height", by=df.gender, sharey=True) @@ -473,7 +463,6 @@ def test_axis_share_y(self): assert not ax1._shared_x_axes.joined(ax1, ax2) assert not ax2._shared_x_axes.joined(ax1, ax2) - @pytest.mark.slow def test_axis_share_xy(self): df = self.hist_df ax1, ax2 = df.hist(column="height", by=df.gender, sharex=True, sharey=True) diff --git a/pandas/tests/plotting/test_misc.py b/pandas/tests/plotting/test_misc.py index 27039948dfc16..c3c8c4588a862 100644 --- a/pandas/tests/plotting/test_misc.py +++ b/pandas/tests/plotting/test_misc.py @@ -68,7 +68,6 @@ def setup_method(self, method): self.ts = tm.makeTimeSeries() self.ts.name = "ts" - @pytest.mark.slow def test_autocorrelation_plot(self): from pandas.plotting import autocorrelation_plot @@ -78,14 +77,12 @@ def test_autocorrelation_plot(self): ax = autocorrelation_plot(self.ts, label="Test") self._check_legend_labels(ax, labels=["Test"]) - @pytest.mark.slow def test_lag_plot(self): from pandas.plotting import lag_plot _check_plot_works(lag_plot, series=self.ts) _check_plot_works(lag_plot, series=self.ts, lag=5) - @pytest.mark.slow def test_bootstrap_plot(self): from pandas.plotting import bootstrap_plot @@ -200,7 +197,6 @@ def test_andrews_curves(self, iris): handles, labels = ax.get_legend_handles_labels() self._check_colors(handles, linecolors=colors) - @pytest.mark.slow def test_parallel_coordinates(self, iris): from pandas.plotting import parallel_coordinates from matplotlib import cm @@ -405,7 +401,6 @@ def test_get_standard_colors_no_appending(self): p = df.A.plot.bar(figsize=(16, 7), color=color_list) assert p.patches[1].get_facecolor() == p.patches[17].get_facecolor() - @pytest.mark.slow def test_dictionary_color(self): # issue-8193 # Test plot color dictionary format diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py index c07a5673fe503..9df10e2a29dd5 100644 --- a/pandas/tests/reshape/test_pivot.py +++ b/pandas/tests/reshape/test_pivot.py @@ -1985,7 +1985,6 @@ def test_pivot_string_func_vs_func(self, f, f_numpy): expected = pivot_table(self.data, index="A", columns="B", aggfunc=f_numpy) tm.assert_frame_equal(result, expected) - @pytest.mark.slow def test_pivot_number_of_levels_larger_than_int32(self): # GH 20601 df = DataFrame( diff --git a/pandas/tests/series/indexing/test_datetime.py b/pandas/tests/series/indexing/test_datetime.py index 0b34fab7b80b1..ab07c5a9fbe48 100644 --- a/pandas/tests/series/indexing/test_datetime.py +++ b/pandas/tests/series/indexing/test_datetime.py @@ -82,7 +82,6 @@ def test_series_set_value(): tm.assert_series_equal(s, expected) -@pytest.mark.slow def test_slice_locs_indexerror(): times = [datetime(2000, 1, 1) + timedelta(minutes=i * 10) for i in range(100000)] s = Series(range(100000), times) diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 1ba73292dc0b4..67791058ea750 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -830,7 +830,6 @@ def test_unstack_unobserved_keys(self): recons = result.stack() tm.assert_frame_equal(recons, df) - @pytest.mark.slow def test_unstack_number_of_levels_larger_than_int32(self): # GH 20601 df = DataFrame( diff --git a/pandas/tests/test_sorting.py b/pandas/tests/test_sorting.py index 98297474243e4..ea586a3771877 100644 --- a/pandas/tests/test_sorting.py +++ b/pandas/tests/test_sorting.py @@ -19,7 +19,6 @@ class TestSorting: - @pytest.mark.slow def test_int64_overflow(self): B = np.concatenate((np.arange(1000), np.arange(1000), np.arange(500))) From 25e7070bdbc65335dc975c647b0c483d7ac4fcad Mon Sep 17 00:00:00 2001 From: OlivierLuG Date: Wed, 3 Jun 2020 14:51:48 +0200 Subject: [PATCH 3/3] remove @pytest.mark.slow batch 2 --- pandas/tests/computation/test_eval.py | 4 ---- pandas/tests/plotting/test_boxplot_method.py | 6 ------ pandas/tests/plotting/test_datetimelike.py | 8 ------- pandas/tests/plotting/test_frame.py | 14 ------------- pandas/tests/plotting/test_series.py | 22 -------------------- 5 files changed, 54 deletions(-) diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 08d8d5ca342b7..62e73f20efca5 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -205,7 +205,6 @@ def test_simple_cmp_ops(self): for lhs, rhs, cmp_op in product(bool_lhses, bool_rhses, self.cmp_ops): self.check_simple_cmp_op(lhs, cmp_op, rhs) - @pytest.mark.slow def test_binary_arith_ops(self): for lhs, op, rhs in product(self.lhses, self.arith_ops, self.rhses): self.check_binary_arith_op(lhs, op, rhs) @@ -224,17 +223,14 @@ def test_pow(self): for lhs, rhs in product(self.lhses, self.rhses): self.check_pow(lhs, "**", rhs) - @pytest.mark.slow def test_single_invert_op(self): for lhs, op, rhs in product(self.lhses, self.cmp_ops, self.rhses): self.check_single_invert_op(lhs, op, rhs) - @pytest.mark.slow def test_compound_invert_op(self): for lhs, op, rhs in product(self.lhses, self.cmp_ops, self.rhses): self.check_compound_invert_op(lhs, op, rhs) - @pytest.mark.slow def test_chained_cmp_op(self): mids = self.lhses cmp_ops = "<", ">" diff --git a/pandas/tests/plotting/test_boxplot_method.py b/pandas/tests/plotting/test_boxplot_method.py index 0a096acc9fa6d..c3de9dfd20224 100644 --- a/pandas/tests/plotting/test_boxplot_method.py +++ b/pandas/tests/plotting/test_boxplot_method.py @@ -78,13 +78,11 @@ def test_boxplot_legacy2(self): lines = list(itertools.chain.from_iterable(d.values())) assert len(ax.get_lines()) == len(lines) - @pytest.mark.slow def test_boxplot_return_type_none(self): # GH 12216; return_type=None & by=None -> axes result = self.hist_df.boxplot() assert isinstance(result, self.plt.Axes) - @pytest.mark.slow def test_boxplot_return_type_legacy(self): # API change in https://github.com/pandas-dev/pandas/pull/7096 import matplotlib as mpl # noqa @@ -112,7 +110,6 @@ def test_boxplot_return_type_legacy(self): result = df.boxplot(return_type="both") self._check_box_return_type(result, "both") - @pytest.mark.slow def test_boxplot_axis_limits(self): def _check_ax_limits(col, ax): y_min, y_max = ax.get_ylim() @@ -139,13 +136,11 @@ def _check_ax_limits(col, ax): assert age_ax._sharey == height_ax assert dummy_ax._sharey is None - @pytest.mark.slow def test_boxplot_empty_column(self): df = DataFrame(np.random.randn(20, 4)) df.loc[:, 0] = np.nan _check_plot_works(df.boxplot, return_type="axes") - @pytest.mark.slow def test_figsize(self): df = DataFrame(np.random.rand(10, 5), columns=["A", "B", "C", "D", "E"]) result = df.boxplot(return_type="axes", figsize=(12, 8)) @@ -253,7 +248,6 @@ def test_boxplot_legacy3(self): axes = _check_plot_works(grouped.boxplot, subplots=False, return_type="axes") self._check_axes_shape(axes, axes_num=1, layout=(1, 1)) - @pytest.mark.slow def test_grouped_plot_fignums(self): n = 10 weight = Series(np.random.normal(166, 20, size=n)) diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py index 7dcb692e29337..88dce3a0385a6 100644 --- a/pandas/tests/plotting/test_datetimelike.py +++ b/pandas/tests/plotting/test_datetimelike.py @@ -250,7 +250,6 @@ def test_plot_offset_freq(self): ser = Series(np.random.randn(len(dr)), index=dr) _check_plot_works(ser.plot) - @pytest.mark.slow def test_plot_multiple_inferred_freq(self): dr = Index([datetime(2000, 1, 1), datetime(2000, 1, 6), datetime(2000, 1, 11)]) ser = Series(np.random.randn(len(dr)), index=dr) @@ -341,7 +340,6 @@ def test_dataframe(self): idx = ax.get_lines()[0].get_xdata() tm.assert_index_equal(bts.index.to_period(), PeriodIndex(idx)) - @pytest.mark.slow def test_axis_limits(self): def _test(ax): xlim = ax.get_xlim() @@ -438,7 +436,6 @@ def test_finder_quarterly(self): assert rs1 == xpl1 assert rs2 == xpl2 - @pytest.mark.slow def test_finder_monthly(self): yrs = [1.15, 2.5, 4, 11] @@ -471,7 +468,6 @@ def test_finder_monthly_long(self): xp = Period("1989Q1", "M").ordinal assert rs == xp - @pytest.mark.slow def test_finder_annual(self): xp = [1987, 1988, 1990, 1990, 1995, 2020, 2070, 2170] xp = [Period(x, freq="A").ordinal for x in xp] @@ -487,7 +483,6 @@ def test_finder_annual(self): assert rs == xp - @pytest.mark.slow def test_finder_minutely(self): nminutes = 50 * 24 * 60 rng = date_range("1/1/1999", freq="Min", periods=nminutes) @@ -567,7 +562,6 @@ def test_gaps(self): mask = data.mask assert mask[2:5, 1].all() - @pytest.mark.slow def test_gap_upsample(self): low = tm.makeTimeSeries() low[5:25] = np.nan @@ -774,7 +768,6 @@ def test_mixed_freq_alignment(self): assert ax.lines[0].get_xdata()[0] == ax.lines[1].get_xdata()[0] - @pytest.mark.slow def test_mixed_freq_lf_first(self): idxh = date_range("1/1/1999", periods=365, freq="D") @@ -1119,7 +1112,6 @@ def test_time_musec(self): xp = time(h, m, s, us).strftime("%H:%M") assert xp == rs - @pytest.mark.slow def test_secondary_upsample(self): idxh = date_range("1/1/1999", periods=365, freq="D") idxl = date_range("1/1/1999", periods=12, freq="M") diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index c84a09f21f46b..ad76509b51169 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -248,7 +248,6 @@ def test_plot_xy(self): # columns.inferred_type == 'mixed' # TODO add MultiIndex test - @pytest.mark.slow @pytest.mark.parametrize( "input_log, expected_log", [(True, "log"), ("sym", "symlog")] ) @@ -277,7 +276,6 @@ def test_invalid_logscale(self, input_param): with pytest.raises(ValueError, match=msg): df.plot(**{input_param: "sm"}) - @pytest.mark.slow def test_xcompat(self): import pandas as pd @@ -966,7 +964,6 @@ def test_bar_user_colors(self): ] assert result == expected - @pytest.mark.slow def test_bar_linewidth(self): df = DataFrame(randn(5, 5)) @@ -1110,7 +1107,6 @@ def test_bar_nan(self): expected = [0.0, 0.0, 0.0, 10.0, 0.0, 20.0, 15.0, 10.0, 40.0] assert result == expected - @pytest.mark.slow def test_bar_categorical(self): # GH 13019 df1 = pd.DataFrame( @@ -1254,7 +1250,6 @@ def test_plot_scatter_with_categorical_data(self, x, y): _check_plot_works(df.plot.scatter, x=x, y=y) - @pytest.mark.slow def test_plot_scatter_with_c(self): df = DataFrame( randn(6, 4), @@ -1460,7 +1455,6 @@ def test_bar_stacked_center(self): self._check_bar_alignment(df, kind="barh", stacked=True) self._check_bar_alignment(df, kind="barh", stacked=True, width=0.9) - @pytest.mark.slow def test_bar_center(self): df = DataFrame({"A": [3] * 5, "B": list(range(5))}, index=range(5)) self._check_bar_alignment(df, kind="bar", stacked=False) @@ -1468,7 +1462,6 @@ def test_bar_center(self): self._check_bar_alignment(df, kind="barh", stacked=False) self._check_bar_alignment(df, kind="barh", stacked=False, width=0.9) - @pytest.mark.slow def test_bar_subplots_center(self): df = DataFrame({"A": [3] * 5, "B": list(range(5))}, index=range(5)) self._check_bar_alignment(df, kind="bar", subplots=True) @@ -1592,7 +1585,6 @@ def test_boxplot_vertical(self): tm.assert_numpy_array_equal(ax.yaxis.get_ticklocs(), positions) assert len(ax.lines) == self.bp_n_objects * len(numeric_cols) - @pytest.mark.slow def test_boxplot_return_type(self): df = DataFrame( randn(6, 4), @@ -1653,7 +1645,6 @@ def test_kde_df(self): axes = df.plot(kind="kde", logy=True, subplots=True) self._check_ax_scales(axes, yaxis="log") - @pytest.mark.slow @td.skip_if_no_scipy def test_kde_missing_vals(self): df = DataFrame(np.random.uniform(size=(100, 4))) @@ -1870,7 +1861,6 @@ def test_hist_df_coord(self): expected_w=np.array([6, 7, 8, 9, 10]), ) - @pytest.mark.slow def test_plot_int_columns(self): df = DataFrame(randn(100, 4)).cumsum() _check_plot_works(df.plot, legend=True) @@ -1991,7 +1981,6 @@ def test_legend_name(self): leg_title = ax.legend_.get_title() self._check_text_labels(leg_title, "new") - @pytest.mark.slow def test_no_legend(self): kinds = ["line", "bar", "barh", "kde", "area", "hist"] df = DataFrame(rand(3, 3), columns=["a", "b", "c"]) @@ -2001,7 +1990,6 @@ def test_no_legend(self): ax = df.plot(kind=kind, legend=False) self._check_legend_labels(ax, visible=False) - @pytest.mark.slow def test_style_by_column(self): import matplotlib.pyplot as plt @@ -2029,7 +2017,6 @@ def test_line_label_none(self): ax = s.plot(legend=True) assert ax.get_legend().get_texts()[0].get_text() == "None" - @pytest.mark.slow def test_line_colors(self): from matplotlib import cm @@ -2968,7 +2955,6 @@ def test_memory_leak(self): # need to actually access something to get an error results[key].lines - @pytest.mark.slow def test_df_subplots_patterns_minorticks(self): # GH 10657 import matplotlib.pyplot as plt diff --git a/pandas/tests/plotting/test_series.py b/pandas/tests/plotting/test_series.py index 5341878d4986e..420d4355f46d6 100644 --- a/pandas/tests/plotting/test_series.py +++ b/pandas/tests/plotting/test_series.py @@ -35,7 +35,6 @@ def setup_method(self, method): self.iseries = tm.makePeriodSeries() self.iseries.name = "iseries" - @pytest.mark.slow def test_plot(self): _check_plot_works(self.ts.plot, label="foo") _check_plot_works(self.ts.plot, use_index=False) @@ -71,7 +70,6 @@ def test_plot(self): ax = _check_plot_works(self.ts.plot, subplots=True, layout=(1, -1)) self._check_axes_shape(ax, axes_num=1, layout=(1, 1)) - @pytest.mark.slow def test_plot_figsize_and_title(self): # figsize and title _, ax = self.plt.subplots() @@ -209,7 +207,6 @@ def test_line_use_index_false(self): label2 = ax2.get_xlabel() assert label2 == "" - @pytest.mark.slow def test_bar_log(self): expected = np.array([1e-1, 1e0, 1e1, 1e2, 1e3, 1e4]) @@ -243,7 +240,6 @@ def test_bar_log(self): tm.assert_almost_equal(res[1], ymax) tm.assert_numpy_array_equal(ax.xaxis.get_ticklocs(), expected) - @pytest.mark.slow def test_bar_ignore_index(self): df = Series([1, 2, 3, 4], index=["a", "b", "c", "d"]) _, ax = self.plt.subplots() @@ -352,14 +348,12 @@ def test_pie_nan(self): result = [x.get_text() for x in ax.texts] assert result == expected - @pytest.mark.slow def test_hist_df_kwargs(self): df = DataFrame(np.random.randn(10, 2)) _, ax = self.plt.subplots() ax = df.plot.hist(bins=5, ax=ax) assert len(ax.patches) == 10 - @pytest.mark.slow def test_hist_df_with_nonnumerics(self): # GH 9853 with tm.RNGContext(1): @@ -397,13 +391,11 @@ def test_hist_legacy(self): with pytest.raises(ValueError): self.ts.hist(by=self.ts.index, figure=fig) - @pytest.mark.slow def test_hist_bins_legacy(self): df = DataFrame(np.random.randn(10, 2)) ax = df.hist(bins=2)[0][0] assert len(ax.patches) == 2 - @pytest.mark.slow def test_hist_layout(self): df = self.hist_df with pytest.raises(ValueError): @@ -448,7 +440,6 @@ def test_hist_layout_with_by(self): axes = df.height.hist(by=df.category, layout=(4, 2), figsize=(12, 7)) self._check_axes_shape(axes, axes_num=4, layout=(4, 2), figsize=(12, 7)) - @pytest.mark.slow def test_hist_no_overlap(self): from matplotlib.pyplot import subplot, gcf @@ -462,7 +453,6 @@ def test_hist_no_overlap(self): axes = fig.axes assert len(axes) == 2 - @pytest.mark.slow def test_hist_secondary_legend(self): # GH 9610 df = DataFrame(np.random.randn(30, 4), columns=list("abcd")) @@ -501,7 +491,6 @@ def test_hist_secondary_legend(self): assert ax.get_yaxis().get_visible() tm.close() - @pytest.mark.slow def test_df_series_secondary_legend(self): # GH 9779 df = DataFrame(np.random.randn(30, 3), columns=list("abc")) @@ -565,7 +554,6 @@ def test_df_series_secondary_legend(self): assert ax.get_yaxis().get_visible() tm.close() - @pytest.mark.slow @pytest.mark.parametrize( "input_logy, expected_scale", [(True, "log"), ("sym", "symlog")] ) @@ -581,7 +569,6 @@ def test_secondary_logy(self, input_logy, expected_scale): assert ax1.get_yscale() == expected_scale assert ax2.get_yscale() == expected_scale - @pytest.mark.slow def test_plot_fails_with_dupe_color_and_style(self): x = Series(randn(2)) with pytest.raises(ValueError): @@ -625,7 +612,6 @@ def test_kde_kwargs(self): self._check_ax_scales(ax, yaxis="log") self._check_text_labels(ax.yaxis.get_label(), "Density") - @pytest.mark.slow @td.skip_if_no_scipy def test_kde_missing_vals(self): s = Series(np.random.uniform(size=50)) @@ -635,7 +621,6 @@ def test_kde_missing_vals(self): # gh-14821: check if the values have any missing values assert any(~np.isnan(axes.lines[0].get_xdata())) - @pytest.mark.slow def test_hist_kwargs(self): _, ax = self.plt.subplots() ax = self.ts.plot.hist(bins=5, ax=ax) @@ -652,7 +637,6 @@ def test_hist_kwargs(self): ax = self.ts.plot.hist(align="left", stacked=True, ax=ax) tm.close() - @pytest.mark.slow @td.skip_if_no_scipy def test_hist_kde_color(self): _, ax = self.plt.subplots() @@ -668,7 +652,6 @@ def test_hist_kde_color(self): assert len(lines) == 1 self._check_colors(lines, ["r"]) - @pytest.mark.slow def test_boxplot_series(self): _, ax = self.plt.subplots() ax = self.ts.plot.box(logy=True, ax=ax) @@ -678,7 +661,6 @@ def test_boxplot_series(self): ylabels = ax.get_yticklabels() self._check_text_labels(ylabels, [""] * len(ylabels)) - @pytest.mark.slow def test_kind_both_ways(self): s = Series(range(3)) kinds = ( @@ -690,7 +672,6 @@ def test_kind_both_ways(self): s.plot(kind=kind, ax=ax) getattr(s.plot, kind)() - @pytest.mark.slow def test_invalid_plot_data(self): s = Series(list("abcd")) _, ax = self.plt.subplots() @@ -720,7 +701,6 @@ def test_invalid_kind(self): with pytest.raises(ValueError): s.plot(kind="aasdf") - @pytest.mark.slow def test_dup_datetime_index_plot(self): dr1 = date_range("1/1/2009", periods=4) dr2 = date_range("1/2/2009", periods=4) @@ -783,7 +763,6 @@ def test_series_grid_settings(self): plotting.PlotAccessor._series_kinds + plotting.PlotAccessor._common_kinds, ) - @pytest.mark.slow def test_standard_colors(self): from pandas.plotting._matplotlib.style import _get_standard_colors @@ -800,7 +779,6 @@ def test_standard_colors(self): result = _get_standard_colors(3, color=[c]) assert result == [c] * 3 - @pytest.mark.slow def test_standard_colors_all(self): import matplotlib.colors as colors from pandas.plotting._matplotlib.style import _get_standard_colors