summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_regression.py
Commit message (Collapse)AuthorAgeFilesLines
* add __f2py_numpy_version__ attributeSturla Molden2020-06-171-1/+21
|
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUG: Fix testing of f2py.compile from strings.Charles Harris2019-01-201-14/+0
| | | | | | | The test should not be run if there is no Fortran compiler. This PR moves it to `numpy/f2py/tests/test_compile_function.py`, which is appropriate for the test and a place where the presence of the needed compilers is already checked for.
* BUG, DOC: test, fix that f2py.compile accepts str and bytes, rework docsmattip2019-01-201-0/+14
|
* MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-061-1/+0
| | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-061-5/+1
| | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* TST: Switch to using pytest markersCharles Harris2018-04-041-2/+3
| | | | | | | | | | | Use standard pytest markers everywhere in the numpy tests. At this point there should be no nose dependency. However, nose is required to test the legacy decorators if so desired. At this point, numpy test cannot be run in the way with runtests, rather installed numpy can be tested with `pytest --pyargs numpy` as long as that is not run from the repo. Run it from the tools directory or some such.
* TST, MAINT: Add `__init__.py` files to tests directories.Charles Harris2017-08-061-1/+1
| | | | | | | | This allows pytest to run with duplicate test file names. Note that `python <path-to-test-file>` no longer works with this change, nor will a simple `pytest numpy`, because numpy is imported from the numpy repository. However, `python runtests.py` and `>>> numpy.test()` are still available.
* BUG: fixed kind specifications for parametersNick Papior2016-11-271-3/+2
| | | | | | | | | | | | | Fortran sources with parameters having kind-specifiers where not correctly intercepted in the crackfortran.py source. The reason was a restrictive check for only integer specifiers which did not split real's into the correct number. Furthermore, several tests has been added which tests the different kind specifiers and their use in codes, also all of them together. Signed-off-by: Nick Papior <nickpapior@gmail.com>
* STY: PEP8 fixes in numpy/f2py/tests.Charles Harris2015-07-251-0/+2
|
* TST: Add basic test for compiling with intent(in out).Charles Harris2014-10-091-0/+32
This checks that the compilation works and that the expected error is raised when non-contiguous arrays are passed as intent(in out).