Skip to content

CI: Mark slow tests as slow to speed up ci #41140

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

Merged
merged 2 commits into from
Apr 26, 2021
Merged
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
1 change: 1 addition & 0 deletions pandas/tests/frame/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,7 @@ def test_constructor_maskedrecarray_dtype(self):
alt = DataFrame({name: data[name] for name in data.dtype.names}, dtype=int)
tm.assert_frame_equal(result, alt)

@pytest.mark.slow
def test_constructor_mrecarray(self):
# Ensure mrecarray produces frame identical to dict of masked arrays
# from GH3479
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/groupby/transform/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def test_groupby_cum_skipna(op, skipna, input, exp):
tm.assert_series_equal(expected, result)


@pytest.mark.arm_slow
@pytest.mark.slow
@pytest.mark.parametrize(
"op, args, targop",
[
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/indexes/datetimes/test_date_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def test_date_range_int64_overflow_non_recoverable(self):
with pytest.raises(OutOfBoundsDatetime, match=msg):
date_range(end="1969-11-14", periods=106752 * 24, freq="H")

@pytest.mark.slow
def test_date_range_int64_overflow_stride_endpoint_different_signs(self):
# cases where stride * periods overflow int64 and stride/endpoint
# have different signs
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/indexes/multi/test_integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_consistency():
assert index.is_unique is False


@pytest.mark.arm_slow
@pytest.mark.slow
def test_hash_collisions():
# non-smoke test that we don't get hash collisions

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/indexing/interval/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_getitem_non_matching(self, series_with_interval_index, indexer_sl):
with pytest.raises(KeyError, match=r"^\[-1\]$"):
indexer_sl(ser)[[-1, 3]]

@pytest.mark.arm_slow
@pytest.mark.slow
def test_loc_getitem_large_series(self):
ser = Series(
np.arange(1000000), index=IntervalIndex.from_breaks(np.arange(1000001))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_cache_updating():
assert result == 2


@pytest.mark.arm_slow
@pytest.mark.slow
def test_indexer_caching():
# GH5727
# make sure that indexers are in the _internal_names_set
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/io/parser/common/test_chunksize.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def test_chunk_begins_with_newline_whitespace(all_parsers):
tm.assert_frame_equal(result, expected)


@pytest.mark.slow
@pytest.mark.xfail(reason="GH38630, sometimes gives ResourceWarning", strict=False)
def test_chunks_have_consistent_numerical_type(all_parsers):
parser = all_parsers
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/parser/test_c_parser_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_unsupported_dtype(c_parser_only, match, kwargs):


@td.skip_if_32bit
@pytest.mark.slow
def test_precise_conversion(c_parser_only):
from decimal import Decimal

Expand Down Expand Up @@ -300,6 +301,7 @@ def test_tokenize_CR_with_quoting(c_parser_only):
tm.assert_frame_equal(result, expected)


@pytest.mark.slow
def test_grow_boundary_at_cap(c_parser_only):
# See gh-12494
#
Expand Down
6 changes: 6 additions & 0 deletions pandas/tests/io/sas/test_sas7bdat.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def setup_method(self, datapath):
df.iloc[:, k] = df.iloc[:, k].astype(np.float64)
self.data.append(df)

@pytest.mark.slow
def test_from_file(self):
for j in 0, 1:
df0 = self.data[j]
Expand All @@ -47,6 +48,7 @@ def test_from_file(self):
df = pd.read_sas(fname, encoding="utf-8")
tm.assert_frame_equal(df, df0)

@pytest.mark.slow
def test_from_buffer(self):
for j in 0, 1:
df0 = self.data[j]
Expand All @@ -61,6 +63,7 @@ def test_from_buffer(self):
df = rdr.read()
tm.assert_frame_equal(df, df0, check_exact=False)

@pytest.mark.slow
def test_from_iterator(self):
for j in 0, 1:
df0 = self.data[j]
Expand All @@ -72,6 +75,7 @@ def test_from_iterator(self):
df = rdr.read(3)
tm.assert_frame_equal(df, df0.iloc[2:5, :])

@pytest.mark.slow
def test_path_pathlib(self):
for j in 0, 1:
df0 = self.data[j]
Expand All @@ -81,6 +85,7 @@ def test_path_pathlib(self):
tm.assert_frame_equal(df, df0)

@td.skip_if_no("py.path")
@pytest.mark.slow
def test_path_localpath(self):
from py.path import local as LocalPath

Expand All @@ -91,6 +96,7 @@ def test_path_localpath(self):
df = pd.read_sas(fname, encoding="utf-8")
tm.assert_frame_equal(df, df0)

@pytest.mark.slow
def test_iterator_loop(self):
# github #13654
for j in 0, 1:
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/io/sas/test_xport.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def setup_method(self, datapath):
with td.file_leak_context():
yield

@pytest.mark.slow
def test1_basic(self):
# Tests with DEMO_G.xpt (all numeric file)

Expand Down
1 change: 0 additions & 1 deletion pandas/tests/test_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def test_int64_overflow(self):
assert left[k] == v
assert len(left) == len(right)

@pytest.mark.arm_slow
def test_int64_overflow_moar(self):

# GH9096
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def test_center_reindex_series(series, roll_func):
tm.assert_series_equal(series_xp, series_rs)


@pytest.mark.slow
@pytest.mark.parametrize("roll_func", ["kurt", "skew"])
def test_center_reindex_frame(frame, roll_func):
# shifter index
Expand Down