summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_recfunctions.py
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2015-10-25 23:41:11 -0400
committerAllan Haldane <allan.haldane@gmail.com>2015-10-26 21:17:59 -0400
commit086d42d8b315cacf04ccaf4a805dc2fc7c137fee (patch)
tree9a66fd73677cb8db8016e42d096860bfc00e8b2a /numpy/lib/tests/test_recfunctions.py
parentbf28b4432183126c21f0fa80852c335e9c1ed7c1 (diff)
downloadnumpy-086d42d8b315cacf04ccaf4a805dc2fc7c137fee.tar.gz
TST: Remove tests of view safety checks (see next commit)
Remove unit tests for the view safety chekcs, which are to be reverted in the next commit.
Diffstat (limited to 'numpy/lib/tests/test_recfunctions.py')
-rw-r--r--numpy/lib/tests/test_recfunctions.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/numpy/lib/tests/test_recfunctions.py b/numpy/lib/tests/test_recfunctions.py
index 09cc29dc1..699a04716 100644
--- a/numpy/lib/tests/test_recfunctions.py
+++ b/numpy/lib/tests/test_recfunctions.py
@@ -720,15 +720,5 @@ class TestAppendFieldsObj(TestCase):
dtype=[('A', object), ('B', float), ('C', int)])
assert_equal(test, control)
- def test_append_with_objects(self):
- "Test append_fields when the appended data contains objects"
- obj = self.data['obj']
- x = np.array([(10, 1.), (20, 2.)], dtype=[('A', int), ('B', float)])
- y = np.array([obj, obj], dtype=object)
- test = append_fields(x, 'C', data=y, dtypes=object, usemask=False)
- control = np.array([(10, 1.0, obj), (20, 2.0, obj)],
- dtype=[('A', int), ('B', float), ('C', object)])
- assert_equal(test, control)
-
if __name__ == '__main__':
run_module_suite()