diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-08-01 09:59:00 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-08-01 10:22:53 -0600 |
commit | 3eb219fd97200282b6aed9fe760e843d4916bc06 (patch) | |
tree | f5f31599dd47d3c1c9d50261dfc38821078b2651 /numpy/compat/tests | |
parent | ae7c942ced535fb39384aefeb8d32df92fb15988 (diff) | |
download | numpy-3eb219fd97200282b6aed9fe760e843d4916bc06.tar.gz |
BUG: Fix bugs in unused code paths.
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.
Diffstat (limited to 'numpy/compat/tests')
-rw-r--r-- | numpy/compat/tests/test_compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/compat/tests/test_compat.py b/numpy/compat/tests/test_compat.py index 3df142e04..f2bba59e6 100644 --- a/numpy/compat/tests/test_compat.py +++ b/numpy/compat/tests/test_compat.py @@ -1,7 +1,7 @@ from os.path import join from numpy.compat import isfileobj -from numpy.testing import TestCase, assert_ +from numpy.testing import assert_ from numpy.testing.utils import tempdir |