python: disable assertion in NumpyAllocator

This commit is contained in:
Alexander Alekhin 2017-07-30 13:54:54 +03:00
parent 15a6586062
commit 46f05f2db6

View File

@ -149,7 +149,7 @@ public:
{ {
if( data != 0 ) if( data != 0 )
{ {
CV_Error(Error::StsAssert, "The data should normally be NULL!"); // issue #6969: CV_Error(Error::StsAssert, "The data should normally be NULL!");
// probably this is safe to do in such extreme case // probably this is safe to do in such extreme case
return stdAllocator->allocate(dims0, sizes, type, data, step, flags, usageFlags); return stdAllocator->allocate(dims0, sizes, type, data, step, flags, usageFlags);
} }