diff options
author | mattip <matti.picus@gmail.com> | 2020-01-04 22:47:47 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-01-05 10:56:58 +0200 |
commit | 18af8e00711f62a5aa2c9b0c4f1225be49877a38 (patch) | |
tree | 27ed84bc3ab4af6e3559f199a73153fe52da0b72 /numpy/distutils/tests | |
parent | c1f1bc9ce8e4e2936e80d9bfafc3d8e03237a84b (diff) | |
download | numpy-18af8e00711f62a5aa2c9b0c4f1225be49877a38.tar.gz |
MAINT: add --std=c99 in setup.py, not distutils
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r-- | numpy/distutils/tests/test_ccompiler.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/numpy/distutils/tests/test_ccompiler.py b/numpy/distutils/tests/test_ccompiler.py deleted file mode 100644 index 72aa8227c..000000000 --- a/numpy/distutils/tests/test_ccompiler.py +++ /dev/null @@ -1,22 +0,0 @@ -from distutils.ccompiler import new_compiler - -from numpy.distutils.numpy_distribution import NumpyDistribution - -def test_ccompiler(): - ''' - scikit-image/scikit-image issue 4369 - We unconditionally add ``-std-c99`` to the gcc compiler in order - to support c99 with very old gcc compilers. However the same call - is used to get the flags for the c++ compiler, just with a kwarg. - Make sure in this case, where it would not be legal, the option is **not** added - ''' - dist = NumpyDistribution() - compiler = new_compiler() - compiler.customize(dist) - if hasattr(compiler, 'compiler') and 'gcc' in compiler.compiler[0]: - assert 'c99' in ' '.join(compiler.compiler) - - compiler = new_compiler() - compiler.customize(dist, need_cxx=True) - if hasattr(compiler, 'compiler') and 'gcc' in compiler.compiler[0]: - assert 'c99' not in ' '.join(compiler.compiler) |