From 72fa75886ff8849ff0783896f66c202a5a6c1776 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 30 Dec 2008 13:52:33 +0100 Subject: [PATCH] Py3 test case fix --- tests/run/bufaccess.pyx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.26.2