Skip to content

Ci #34131 rm slow fixtures #34549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pandas/tests/computation/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = "<", ">"
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_repr_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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))
Expand Down
6 changes: 0 additions & 6 deletions pandas/tests/plotting/test_boxplot_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand All @@ -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))
Expand Down Expand Up @@ -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))
Expand Down
8 changes: 0 additions & 8 deletions pandas/tests/plotting/test_datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -353,7 +352,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()
Expand Down Expand Up @@ -450,7 +448,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]

Expand Down Expand Up @@ -483,7 +480,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]
Expand All @@ -499,7 +495,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)
Expand Down Expand Up @@ -579,7 +574,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
Expand Down Expand Up @@ -786,7 +780,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")
Expand Down Expand Up @@ -1131,7 +1124,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")
Expand Down
14 changes: 0 additions & 14 deletions pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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))

Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -1460,15 +1455,13 @@ 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)
self._check_bar_alignment(df, kind="bar", stacked=False, width=0.9)
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)
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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)))
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"])
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions pandas/tests/plotting/test_hist_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions pandas/tests/plotting/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading