diff options
| author | Roman Yurchak <rth.yurchak@pm.me> | 2018-12-06 20:05:08 +0100 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2018-12-06 11:05:08 -0800 |
| commit | 45cef38cda80868355a920b5e94211dcf662ea07 (patch) | |
| tree | e353794e418c2900e92c82e519e87f990605de60 /numpy/testing/tests | |
| parent | 8ffa2273ce739fe2b38b09f7f8aa37fde1591a18 (diff) | |
| download | numpy-45cef38cda80868355a920b5e94211dcf662ea07.tar.gz | |
MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) (#12448)
* Review F401,F841,F842 flake8 errors (unused variables, imports)
* Review comments
* More tests in test_installed_npymath_ini
* Review comments
Diffstat (limited to 'numpy/testing/tests')
| -rw-r--r-- | numpy/testing/tests/test_decorators.py | 2 | ||||
| -rw-r--r-- | numpy/testing/tests/test_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/tests/test_decorators.py b/numpy/testing/tests/test_decorators.py index b8283d9de..bb3ea1acb 100644 --- a/numpy/testing/tests/test_decorators.py +++ b/numpy/testing/tests/test_decorators.py @@ -13,7 +13,7 @@ from numpy.testing import ( try: - import nose + import nose # noqa: F401 except ImportError: HAVE_NOSE = False else: diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index e35cdb6cf..43afafaa8 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -1432,7 +1432,7 @@ def test_tempdir(): def test_temppath(): with temppath() as fpath: - with open(fpath, 'w') as f: + with open(fpath, 'w'): pass assert_(not os.path.isfile(fpath)) |
