Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit b60774d

Browse files
committed
Skip tests in test_rolling using @skip_numba_jit
1 parent a983e60 commit b60774d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

sdc/tests/test_rolling.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import sdc
3636
from sdc.tests.test_utils import (count_array_REPs, count_parfor_REPs,
3737
count_parfor_OneDs, count_array_OneDs, dist_IR_contains,
38-
TestCase)
38+
skip_numba_jit, TestCase)
3939
from sdc.hiframes.rolling import supported_rolling_funcs
4040

4141
LONG_TEST = (int(os.environ['SDC_LONG_ROLLING_TEST']) != 0
@@ -86,6 +86,7 @@ def test_fixed2(self):
8686
df = pd.DataFrame({'B': np.arange(n)})
8787
pd.testing.assert_frame_equal(hpat_func(df, w, c), test_impl(df, w, c))
8888

89+
@skip_numba_jit
8990
def test_fixed_apply1(self):
9091
# test sequentially with manually created dfs
9192
def test_impl(df, w, c):
@@ -101,6 +102,7 @@ def test_impl(df, w, c):
101102
df = pd.DataFrame({'B': [0, 1, 2, -2, 4]})
102103
pd.testing.assert_frame_equal(hpat_func(df, *args), test_impl(df, *args))
103104

105+
@skip_numba_jit
104106
def test_fixed_apply2(self):
105107
# test sequentially with generated dfs
106108
def test_impl(df, w, c):
@@ -135,6 +137,7 @@ def test_impl(n, w, center):
135137
self.assertEqual(count_array_REPs(), 0)
136138
self.assertEqual(count_parfor_REPs(), 0)
137139

140+
@skip_numba_jit
138141
def test_fixed_parallel_apply1(self):
139142
def test_impl(n, w, center):
140143
df = pd.DataFrame({'B': np.arange(n)})
@@ -203,6 +206,7 @@ def test_variable2(self):
203206
df = pd.DataFrame({'B': np.arange(n), 'time': time})
204207
pd.testing.assert_frame_equal(hpat_func(df), test_impl(df))
205208

209+
@skip_numba_jit
206210
def test_variable_apply1(self):
207211
# test sequentially with manually created dfs
208212
df1 = pd.DataFrame({'B': [0, 1, 2, np.nan, 4],
@@ -230,6 +234,7 @@ def test_variable_apply1(self):
230234
pd.testing.assert_frame_equal(hpat_func(df1), test_impl(df1))
231235
pd.testing.assert_frame_equal(hpat_func(df2), test_impl(df2))
232236

237+
@skip_numba_jit
233238
def test_variable_apply2(self):
234239
# test sequentially with generated dfs
235240
wins = ('2s',)
@@ -274,6 +279,7 @@ def test_variable_parallel1(self):
274279
self.assertEqual(count_array_REPs(), 0)
275280
self.assertEqual(count_parfor_REPs(), 0)
276281

282+
@skip_numba_jit
277283
@unittest.skipIf(platform.system() == 'Windows', "ValueError: time must be monotonic")
278284
def test_variable_apply_parallel1(self):
279285
wins = ('2s',)
@@ -298,6 +304,7 @@ def test_variable_apply_parallel1(self):
298304
self.assertEqual(count_array_REPs(), 0)
299305
self.assertEqual(count_parfor_REPs(), 0)
300306

307+
@skip_numba_jit
301308
def test_series_fixed1(self):
302309
# test series rolling functions
303310
# all functions except apply
@@ -325,6 +332,7 @@ def apply_test_impl(S, w, c):
325332
pd.testing.assert_series_equal(hpat_func(S1, *args), apply_test_impl(S1, *args))
326333
pd.testing.assert_series_equal(hpat_func(S2, *args), apply_test_impl(S2, *args))
327334

335+
@skip_numba_jit
328336
def test_series_cov1(self):
329337
# test series rolling functions
330338
# all functions except apply
@@ -349,6 +357,7 @@ def test_impl2(S, S2, w, c):
349357
pd.testing.assert_series_equal(hpat_func(*args), test_impl2(*args))
350358
pd.testing.assert_series_equal(hpat_func(*args), test_impl2(*args))
351359

360+
@skip_numba_jit
352361
def test_df_cov1(self):
353362
# test series rolling functions
354363
# all functions except apply

0 commit comments

Comments
 (0)