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

Commit b54efef

Browse files
authored
Merge pull request #359 from PokhodenkoSA/sdc-self-jit
Skip hanging tests in test_basic
2 parents 87026a5 + e3b2817 commit b54efef

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

sdc/tests/test_basic.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def _follow_cpython(self, ptr, seed=2):
8686

8787
class TestBasic(BaseTest):
8888

89+
@skip_numba_jit("hang with numba.jit. ok with sdc.jit")
8990
def test_getitem(self):
9091
def test_impl(N):
9192
A = np.ones(N)
@@ -99,6 +100,7 @@ def test_impl(N):
99100
self.assertEqual(count_array_REPs(), 0)
100101
self.assertEqual(count_parfor_REPs(), 0)
101102

103+
@skip_numba_jit("Failed in nopython mode pipeline (step: Preprocessing for parfors)")
102104
def test_setitem1(self):
103105
def test_impl(N):
104106
A = np.arange(10) + 1.0
@@ -111,6 +113,7 @@ def test_impl(N):
111113
self.assertEqual(count_array_REPs(), 0)
112114
self.assertEqual(count_parfor_REPs(), 0)
113115

116+
@skip_numba_jit("Failed in nopython mode pipeline (step: Preprocessing for parfors)")
114117
def test_setitem2(self):
115118
def test_impl(N):
116119
A = np.arange(10) + 1.0
@@ -123,6 +126,7 @@ def test_impl(N):
123126
self.assertEqual(count_array_REPs(), 0)
124127
self.assertEqual(count_parfor_REPs(), 0)
125128

129+
@skip_numba_jit("hang with numba.jit. ok with sdc.jit")
126130
def test_astype(self):
127131
def test_impl(N):
128132
return np.ones(N).astype(np.int32).sum()
@@ -152,6 +156,7 @@ def test_impl(N):
152156
# self.assertEqual(count_array_REPs(), 0)
153157
# self.assertEqual(count_parfor_REPs(), 0)
154158

159+
@skip_numba_jit("hang with numba.jit. ok with sdc.jit")
155160
def test_inplace_binop(self):
156161
def test_impl(N):
157162
A = np.ones(N)
@@ -165,6 +170,7 @@ def test_impl(N):
165170
self.assertEqual(count_array_REPs(), 0)
166171
self.assertEqual(count_parfor_REPs(), 0)
167172

173+
@skip_numba_jit("hang with numba.jit. ok with sdc.jit")
168174
def test_getitem_multidim(self):
169175
def test_impl(N):
170176
A = np.ones((N, 3))
@@ -178,6 +184,7 @@ def test_impl(N):
178184
self.assertEqual(count_array_REPs(), 0)
179185
self.assertEqual(count_parfor_REPs(), 0)
180186

187+
@skip_numba_jit("Failed in nopython mode pipeline (step: Preprocessing for parfors)")
181188
def test_whole_slice(self):
182189
def test_impl(N):
183190
X = np.ones((N, 4))
@@ -190,6 +197,7 @@ def test_impl(N):
190197
self.assertEqual(count_array_REPs(), 0)
191198
self.assertEqual(count_parfor_REPs(), 0)
192199

200+
@skip_numba_jit("hang with numba.jit. ok with sdc.jit")
193201
def test_strided_getitem(self):
194202
def test_impl(N):
195203
A = np.ones(N)
@@ -229,6 +237,7 @@ def f():
229237

230238
pd.testing.assert_series_equal(self.jit(f)(), f())
231239

240+
@skip_numba_jit("Failed in nopython mode pipeline (step: Preprocessing for parfors)")
232241
def test_reduce(self):
233242
import sys
234243
dtypes = ['float32', 'float64', 'int32', 'int64']
@@ -423,6 +432,7 @@ def test_impl(N):
423432
finally:
424433
sdc.distributed_analysis.auto_rebalance = False
425434

435+
@skip_numba_jit("Failed in nopython mode pipeline (step: Preprocessing for parfors)")
426436
def test_transpose(self):
427437
def test_impl(n):
428438
A = np.ones((30, 40, 50))

sdc/tests/test_hiframes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from sdc.tests.test_utils import (count_array_REPs, count_parfor_REPs,
4545
count_parfor_OneDs, count_array_OneDs, dist_IR_contains,
4646
get_start_end,
47-
skip_numba_jit)
47+
skip_sdc_jit, skip_numba_jit)
4848

4949

5050
class TestHiFrames(TestCase):
@@ -424,6 +424,7 @@ def test_impl(df):
424424
pd.testing.assert_series_equal(
425425
hpat_func(df), test_impl(df), check_names=False)
426426

427+
@skip_sdc_jit("Could not get length of Series(StringArraySplitView)")
427428
@skip_numba_jit
428429
def test_str_split_filter(self):
429430
def test_impl(df):

0 commit comments

Comments
 (0)