From 917652ab0ebc7dfcba5b87902829658fff754730 Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 4 Sep 2017 23:32:26 -0500 Subject: 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. --- numpy/f2py/tests/test_common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'numpy/f2py/tests/test_common.py') 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, -- cgit v1.2.1 From 41407a2c18901c2fe5038e7b2b0c3090ee6409d8 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sat, 9 Sep 2017 10:17:24 -0500 Subject: TST: common: update documentation --- numpy/f2py/tests/test_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/f2py/tests/test_common.py') diff --git a/numpy/f2py/tests/test_common.py b/numpy/f2py/tests/test_common.py index 865b7ca82..81082e575 100644 --- a/numpy/f2py/tests/test_common.py +++ b/numpy/f2py/tests/test_common.py @@ -13,7 +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') + @dec.knownfailureif(sys.platform=='win32', msg='Fails with MinGW64 Gfortran (Issue #9673)') def test_common_block(self): self.module.initcb() assert_array_equal(self.module.block.long_bn, -- cgit v1.2.1