summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_recfunctions.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-09-15 08:20:50 +0300
committerGitHub <noreply@github.com>2019-09-15 08:20:50 +0300
commit96103d769301f9c915e23b2a233aa5634008db81 (patch)
tree90df2ab24d0931ed0f8cdf75a7171782d762d546 /numpy/lib/tests/test_recfunctions.py
parent53adf81bc503d749b13160a27e49160c5bbe48d7 (diff)
parent49916f66479d7a6b14087f39e06290941e07596d (diff)
downloadnumpy-96103d769301f9c915e23b2a233aa5634008db81.tar.gz
Merge pull request #14510 from eric-wieser/fix-drop_fields
API: Do not return None from recfunctions.drop_fields
Diffstat (limited to 'numpy/lib/tests/test_recfunctions.py')
-rw-r--r--numpy/lib/tests/test_recfunctions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_recfunctions.py b/numpy/lib/tests/test_recfunctions.py
index 0c839d486..f9355c2e1 100644
--- a/numpy/lib/tests/test_recfunctions.py
+++ b/numpy/lib/tests/test_recfunctions.py
@@ -91,8 +91,10 @@ class TestRecFunctions(object):
control = np.array([(1,), (4,)], dtype=[('a', int)])
assert_equal(test, control)
+ # dropping all fields results in an array with no fields
test = drop_fields(a, ['a', 'b'])
- assert_(test is None)
+ control = np.array([(), ()], dtype=[])
+ assert_equal(test, control)
def test_rename_fields(self):
# Test rename fields