summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 532daf31b..288071cde 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4142,12 +4142,6 @@ array_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
type_num = descr->type_num;
itemsize = descr->elsize;
- if (dims.ptr == NULL) {
- PyErr_SetString(PyExc_ValueError, "need to give a "\
- "valid shape as the first argument");
- goto fail;
- }
-
if (buffer.ptr == NULL) {
ret = (PyArrayObject *)\
PyArray_NewFromDescr(subtype, descr,