fix new memory view error test in Py2.4