Skip to content

Commit

Permalink
Merge pull request numpy#12106 from charris/fix-darwin-f2py-failures
Browse files Browse the repository at this point in the history
TST, MAINT: Skip some f2py tests on Mac.
  • Loading branch information
charris authored Oct 8, 2018
2 parents cb9add3 + 7c98513 commit 2382a1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions numpy/f2py/tests/test_return_real.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import division, absolute_import, print_function

import platform
import pytest

from numpy import array
Expand Down Expand Up @@ -52,6 +53,11 @@ def check_function(self, t):
pass



@pytest.mark.skipif(
platform.system() == 'Darwin',
reason="Prone to error when run with numpy/f2py/tests on mac os, "
"but not when run in isolation")
class TestCReturnReal(TestReturnReal):
suffix = ".pyf"
module_name = "c_ext_return_real"
Expand Down
13 changes: 9 additions & 4 deletions numpy/f2py/tests/test_semicolon_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
from . import util
from numpy.testing import assert_equal

@pytest.mark.skipif(
platform.system() == 'Darwin',
reason="Prone to error when run with numpy/f2py/tests on mac os, "
"but not when run in isolation")
class TestMultiline(util.F2PyTest):
suffix = ".pyf"
module_name = "multiline"
Expand All @@ -26,13 +30,14 @@ class TestMultiline(util.F2PyTest):
end python module {module}
""".format(module=module_name)

@pytest.mark.skipif(platform.system() == 'Darwin',
reason="Prone to error when run with "
"numpy/f2py/tests on mac os, "
"but not when run in isolation")
def test_multiline(self):
assert_equal(self.module.foo(), 42)


@pytest.mark.skipif(
platform.system() == 'Darwin',
reason="Prone to error when run with numpy/f2py/tests on mac os, "
"but not when run in isolation")
class TestCallstatement(util.F2PyTest):
suffix = ".pyf"
module_name = "callstatement"
Expand Down

0 comments on commit 2382a1b

Please sign in to comment.