summaryrefslogtreecommitdiff
path: root/numpy/compat/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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, MAINT: Add `__init__.py` files to tests directories.Charles Harris2017-08-061-0/+0
| | | | | | | | 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.
* MAINT: Rearrange files in numpy/testing module.Charles Harris2017-07-041-1/+1
| | | | | | | | | | | | | | | | | The aim here is to separate out the nose dependent files prior to adding pytest support. This could be done by adding new files to the general numpy/testing directory, but I felt that it was to have the relevant files separated out as it makes it easier to completely remove nose dependencies when needed. Many places were accessing submodules in numpy/testing directly, and in some cases incorrectly. That presented a backwards compatibility problem. The solution adapted here is to have "dummy" files whose contents will depend on whether of not pytest is active. That way the module looks the same as before from the outside. In the case of numpy itself, direct accesses have been fixed. Having proper `__all__` lists in the submodules helped in that.
* MAINT: Include from __future__ boilerplate in some files missing it.Charles Harris2015-12-051-0/+2
| | | | | Some newer *.py files are missing the `from __future__` boilerplate that helps assure Python2 and Python3 compatibility.
* TST: pass sys.argv to run_module_suite by defaultJulian Taylor2014-09-041-1/+5
| | | | | allows passing flags like --pdb to test files also add call to files where its missing
* BUG: Fix bugs in unused code paths.Charles Harris2014-08-011-1/+1
| | | | | | | | | The `getargspec` needed to import the disassembler to support parsing tuple arguments. Since numpy never uses those, the corresponding code is deleted and an TypeError raised if such arguments are encountered. Also fix the unused formatargs function so it does not require the string module.
* FIX isfileobj accepts write-mode files under PY3Olivier Grisel2014-06-301-0/+19