8000 TST: Mark slow tests [f2py] · numpy/numpy@f4d92cd · GitHub
[go: up one dir, main page]

Skip to content

Commit f4d92cd

Browse files
committed
TST: Mark slow tests [f2py]
Should finish in around a minute now
1 parent 63cbffb commit f4d92cd

17 files changed

+25
-3
lines changed

numpy/f2py/tests/test_abstract_interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")
10+
@pytest.mark.slow
1011
class TestAbstractInterface(util.F2PyTest):
1112
sources = [util.getpath("tests", "src", "abstract_interface", "foo.f90")]
1213

numpy/f2py/tests/test_block_docstring.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from numpy.testing import IS_PYPY
66

77

8+
@pytest.mark.slow
89
class TestBlockDocString(util.F2PyTest):
910
sources = [util.getpath("tests", "src", "block_docstring", "foo.f")]
1011

numpy/f2py/tests/test_callback.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class TestF77Callback(util.F2PyTest):
1515
sources = [util.getpath("tests", "src", "callback", "foo.f")]
1616

1717
@pytest.mark.parametrize("name", "t,t2".split(","))
18+
@pytest.mark.slow
1819
def test_all(self, name):
1920
self.check_function(name)
2021

@@ -205,6 +206,7 @@ class TestF77CallbackPythonTLS(TestF77Callback):
205206
class TestF90Callback(util.F2PyTest):
206207
sources = [util.getpath("tests", "src", "callback", "gh17797.f90")]
207208

209+
@pytest.mark.slow
208210
def test_gh17797(self):
209211
def incr(x):
210212
return x + 123
@@ -222,6 +224,7 @@ class TestGH18335(util.F2PyTest):
222224
"""
223225
sources = [util.getpath("tests", "src", "callback", "gh18335.f90")]
224226

227+
@pytest.mark.slow
225228
def test_gh18335(self):
226229
def foo(x):
227230
x[0] += 1
@@ -235,7 +238,7 @@ class TestGH25211(util.F2PyTest):
235238
util.getpath("tests", "src", "callback", "gh25211.pyf")]
236239
module_name = "callback2"
237240

238-
def test_gh18335(self):
241+
def test_gh25211(self):
239242
def bar(x):
240243
return x*x
241244

numpy/f2py/tests/test_character.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from numpy.f2py.tests import util
66

77

8+
@pytest.mark.slow
89
class TestCharacterString(util.F2PyTest):
910
# options = ['--debug-capi', '--build-dir', '/tmp/test-build-f2py']
1011
suffix = '.f90'
@@ -512,6 +513,7 @@ class TestMiscCharacter(util.F2PyTest):
512513
end subroutine {fprefix}_character_bc_old
513514
""")
514515

516+
@pytest.mark.slow
515517
def test_gh18684(self):
516518
# Test character(len=5) and character*5 usages
517519
f = getattr(self.module, self.fprefix + '_gh18684')
@@ -596,6 +598,7 @@ class TestStringAssumedLength(util.F2PyTest):
596598
def test_gh24008(self):
597599
self.module.greet("joe", "bob")
598600

601+
@pytest.mark.slow
599602
class TestStringOptionalInOut(util.F2PyTest):
600603
sources = [util.getpath("tests", "src", "string", "gh24662.f90")]
601604

numpy/f2py/tests/test_crackfortran.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ class TestDimSpec(util.F2PyTest):
210210
)
211211

212212
@pytest.mark.parametrize("dimspec", all_dimspecs)
213+
@pytest.mark.slow
213214
def test_array_size(self, dimspec):
214215

215216
count = self.all_dimspecs.index(dimspec)
@@ -276,6 +277,7 @@ def test_input_encoding(self, tmp_path, encoding):
276277
assert mod[0]['name'] == 'foo'
277278

278279

280+
@pytest.mark.slow
279281
class TestUnicodeComment(util.F2PyTest):
280282
sources = [util.getpath("tests", "src", "crackfortran", "unicode_comment.f90")]
281283

numpy/f2py/tests/test_docs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def get_docdir():
1919
def _path(*args):
2020
return get_docdir().joinpath(*args)
2121

22+
@pytest.mark.slow
2223
class TestDocAdvanced(util.F2PyTest):
2324
# options = ['--debug-capi', '--build-dir', '/tmp/build-f2py']
2425
sources = [_path('asterisk1.f90'), _path('asterisk2.f90'),

numpy/f2py/tests/test_f2cmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class TestF2Cmap(util.F2PyTest):
88
]
99

1010
# gh-15095
11-
def test_long_long_map(self):
11+
def test_gh15095(self):
1212
inp = np.ones(3)
1313
out = self.module.func1(inp)
1414
exp_out = 3

numpy/f2py/tests/test_isoc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from . import util
22
import numpy as np
3+
import pytest
34

45
class TestISOC(util.F2PyTest):
56
sources = [
67
util.getpath("tests", "src", "isocintrin", "isoCtests.f90"),
78
]
89

910
# gh-24553
11+
@pytest.mark.slow
1012
def test_c_double(self):
1113
out = self.module.coddity.c_add(1, 2)
1214
exp_out = 3

numpy/f2py/tests/test_mixed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class TestMixed(util.F2PyTest):
1313
util.getpath("tests", "src", "mixed", "foo_free.f90"),
1414
]
1515

16+
@pytest.mark.slow
1617
def test_all(self):
1718
assert self.module.bar11() == 11
1819
assert self.module.foo_fixed.bar12() == 12

numpy/f2py/tests/test_module_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from numpy.testing import IS_PYPY
88

99

10+
@pytest.mark.slow
1011
class TestModuleDocString(util.F2PyTest):
1112
sources = [
1213
util.getpath("tests", "src", "module_data",

0 commit comments

Comments
 (0)
0