Commit 72fa7588 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test case fix

parent d7e5c0fb
......@@ -1095,6 +1095,10 @@ cdef class MockBuffer:
self.ndim = len(shape)
self.suboffsets = NULL
try:
format = format.encode('ASCII')
except AttributeError:
pass
self.format = format
self.len = len(data) * self.itemsize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment