diff options
author | Mike Taves <mwtoews@gmail.com> | 2020-02-05 08:21:51 +1300 |
---|---|---|
committer | Mike Taves <mwtoews@gmail.com> | 2020-02-06 22:16:23 +1300 |
commit | 07bf33fbf5be8143aab037dc65aba3086f8badf6 (patch) | |
tree | 8f48992ca38bafe589ed331f54c43106ba23902d /numpy/random/tests/test_extending.py | |
parent | a9bc5db4671c6c702e3a8a35fbf31b8d3225fad2 (diff) | |
download | numpy-07bf33fbf5be8143aab037dc65aba3086f8badf6.tar.gz |
MAINT: cleanup unused imports; avoid redefinition of imports
* Cleanup unused imports (F401) of mostly standard Python modules,
or some internal but unlikely referenced modules
* Where internal imports are potentially used, mark with noqa
* Avoid redefinition of imports (F811)
Diffstat (limited to 'numpy/random/tests/test_extending.py')
-rw-r--r-- | numpy/random/tests/test_extending.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py index b0d4c60fe..64b8803dd 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -50,8 +50,8 @@ def test_cython(tmp_path): @pytest.mark.skipif(numba is None or cffi is None, reason="requires numba and cffi") def test_numba(): - from numpy.random._examples.numba import extending + from numpy.random._examples.numba import extending # noqa: F401 @pytest.mark.skipif(cffi is None, reason="requires cffi") def test_cffi(): - from numpy.random._examples.cffi import extending + from numpy.random._examples.cffi import extending # noqa: F401 |