From: Stefan Behnel Date: Tue, 30 Dec 2008 12:52:33 +0000 (+0100) Subject: Py3 test case fix X-Git-Tag: 0.11-beta~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=72fa75886ff8849ff0783896f66c202a5a6c1776;p=cython.git Py3 test case fix --- diff --git a/tests/run/bufaccess.pyx b/tests/run/bufaccess.pyx index d9f814f2..89b0f3d4 100644 --- a/tests/run/bufaccess.pyx +++ b/tests/run/bufaccess.pyx @@ -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