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

Py3 test case fix

parent d7e5c0fb
......@@ -1094,7 +1094,11 @@ cdef class MockBuffer:
self.buffer = self.create_buffer(data)
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