Skip to content

Commit 7f154f9

Browse files
phoflyeshsurya
authored andcommitted
CI: Mark slow tests as slow to speed up ci (pandas-dev#41140)
1 parent 9879ae7 commit 7f154f9

File tree

12 files changed

+17
-5
lines changed

12 files changed

+17
-5
lines changed

pandas/tests/frame/test_constructors.py

+1
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ def test_constructor_maskedrecarray_dtype(self):
10121012
alt = DataFrame({name: data[name] for name in data.dtype.names}, dtype=int)
10131013
tm.assert_frame_equal(result, alt)
10141014

1015+
@pytest.mark.slow
10151016
def test_constructor_mrecarray(self):
10161017
# Ensure mrecarray produces frame identical to dict of masked arrays
10171018
# from GH3479

pandas/tests/groupby/transform/test_transform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def test_groupby_cum_skipna(op, skipna, input, exp):
631631
tm.assert_series_equal(expected, result)
632632

633633

634-
@pytest.mark.arm_slow
634+
@pytest.mark.slow
635635
@pytest.mark.parametrize(
636636
"op, args, targop",
637637
[

pandas/tests/indexes/datetimes/test_date_range.py

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def test_date_range_int64_overflow_non_recoverable(self):
146146
with pytest.raises(OutOfBoundsDatetime, match=msg):
147147
date_range(end="1969-11-14", periods=106752 * 24, freq="H")
148148

149+
@pytest.mark.slow
149150
def test_date_range_int64_overflow_stride_endpoint_different_signs(self):
150151
# cases where stride * periods overflow int64 and stride/endpoint
151152
# have different signs

pandas/tests/indexes/multi/test_integrity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_consistency():
122122
assert index.is_unique is False
123123

124124

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

pandas/tests/indexing/interval/test_interval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_getitem_non_matching(self, series_with_interval_index, indexer_sl):
7171
with pytest.raises(KeyError, match=r"^\[-1\]$"):
7272
indexer_sl(ser)[[-1, 3]]
7373

74-
@pytest.mark.arm_slow
74+
@pytest.mark.slow
7575
def test_loc_getitem_large_series(self):
7676
ser = Series(
7777
np.arange(1000000), index=IntervalIndex.from_breaks(np.arange(1000001))

pandas/tests/indexing/multiindex/test_chaining_and_caching.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_cache_updating():
5656
assert result == 2
5757

5858

59-
@pytest.mark.arm_slow
59+
@pytest.mark.slow
6060
def test_indexer_caching():
6161
# GH5727
6262
# make sure that indexers are in the _internal_names_set

pandas/tests/io/parser/common/test_chunksize.py

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def test_chunk_begins_with_newline_whitespace(all_parsers):
162162
tm.assert_frame_equal(result, expected)
163163

164164

165+
@pytest.mark.slow
165166
@pytest.mark.xfail(reason="GH38630, sometimes gives ResourceWarning", strict=False)
166167
def test_chunks_have_consistent_numerical_type(all_parsers):
167168
parser = all_parsers

pandas/tests/io/parser/test_c_parser_only.py

+2
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def test_unsupported_dtype(c_parser_only, match, kwargs):
159159

160160

161161
@td.skip_if_32bit
162+
@pytest.mark.slow
162163
def test_precise_conversion(c_parser_only):
163164
from decimal import Decimal
164165

@@ -300,6 +301,7 @@ def test_tokenize_CR_with_quoting(c_parser_only):
300301
tm.assert_frame_equal(result, expected)
301302

302303

304+
@pytest.mark.slow
303305
def test_grow_boundary_at_cap(c_parser_only):
304306
# See gh-12494
305307
#

pandas/tests/io/sas/test_sas7bdat.py

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def setup_method(self, datapath):
3939
df.iloc[:, k] = df.iloc[:, k].astype(np.float64)
4040
self.data.append(df)
4141

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

51+
@pytest.mark.slow
5052
def test_from_buffer(self):
5153
for j in 0, 1:
5254
df0 = self.data[j]
@@ -61,6 +63,7 @@ def test_from_buffer(self):
6163
df = rdr.read()
6264
tm.assert_frame_equal(df, df0, check_exact=False)
6365

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

78+
@pytest.mark.slow
7579
def test_path_pathlib(self):
7680
for j in 0, 1:
7781
df0 = self.data[j]
@@ -81,6 +85,7 @@ def test_path_pathlib(self):
8185
tm.assert_frame_equal(df, df0)
8286

8387
@td.skip_if_no("py.path")
88+
@pytest.mark.slow
8489
def test_path_localpath(self):
8590
from py.path import local as LocalPath
8691

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

99+
@pytest.mark.slow
94100
def test_iterator_loop(self):
95101
# github #13654
96102
for j in 0, 1:

pandas/tests/io/sas/test_xport.py

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def setup_method(self, datapath):
3434
with td.file_leak_context():
3535
yield
3636

37+
@pytest.mark.slow
3738
def test1_basic(self):
3839
# Tests with DEMO_G.xpt (all numeric file)
3940

pandas/tests/test_sorting.py

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def test_int64_overflow(self):
6767
assert left[k] == v
6868
assert len(left) == len(right)
6969

70-
@pytest.mark.arm_slow
7170
def test_int64_overflow_moar(self):
7271

7372
# GH9096

pandas/tests/window/moments/test_moments_rolling_skew_kurt.py

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def test_center_reindex_series(series, roll_func):
152152
tm.assert_series_equal(series_xp, series_rs)
153153

154154

155+
@pytest.mark.slow
155156
@pytest.mark.parametrize("roll_func", ["kurt", "skew"])
156157
def test_center_reindex_frame(frame, roll_func):
157158
# shifter index

0 commit comments

Comments
 (0)