summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_common.py
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-09-04 23:32:26 -0500
committerxoviat <xoviat@users.noreply.github.com>2017-09-04 23:33:25 -0500
commit917652ab0ebc7dfcba5b87902829658fff754730 (patch)
tree36b1d15d6b2ce8d1f79c06eea003a7b2b52275c8 /numpy/f2py/tests/test_common.py
parent37878bfb4aa9db5860887ad994c4014611812cb3 (diff)
downloadnumpy-917652ab0ebc7dfcba5b87902829658fff754730.tar.gz
TST: fix failures:
1. fail tests related to DLL load failure as they were previously untested. 2. fix have_compiler to return false on old compilers 3. xfail some tests that were not working on old Python versions.
Diffstat (limited to 'numpy/f2py/tests/test_common.py')
-rw-r--r--numpy/f2py/tests/test_common.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/f2py/tests/test_common.py b/numpy/f2py/tests/test_common.py
index aaa35b678..865b7ca82 100644
--- a/numpy/f2py/tests/test_common.py
+++ b/numpy/f2py/tests/test_common.py
@@ -1,11 +1,11 @@
from __future__ import division, absolute_import, print_function
import os
-
-from numpy.testing import run_module_suite, assert_array_equal, dec
+import sys
import numpy as np
from . import util
+from numpy.testing import run_module_suite, assert_array_equal, dec
def _path(*a):
return os.path.join(*((os.path.dirname(__file__),) + a))
@@ -13,6 +13,7 @@ def _path(*a):
class TestCommonBlock(util.F2PyTest):
sources = [_path('src', 'common', 'block.f')]
+ @dec.knownfailureif(sys.platform=='win32', msg='Fails with MinGW64 Gfortran')
def test_common_block(self):
self.module.initcb()
assert_array_equal(self.module.block.long_bn,