Skip to content
Snippets Groups Projects
Commit 13653b46 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Another Py3 fix.

parent 18e75476
No related branches found
Tags v2011.2
No related merge requests found
...@@ -260,7 +260,7 @@ class TestCL: ...@@ -260,7 +260,7 @@ class TestCL:
a_img = cl.image_from_array(context, a, num_channels) a_img = cl.image_from_array(context, a, num_channels)
except cl.RuntimeError: except cl.RuntimeError:
import sys import sys
exc = sys.exc_value exc = sys.exc_info()[1]
if exc.code == cl.status_code.IMAGE_FORMAT_NOT_SUPPORTED: if exc.code == cl.status_code.IMAGE_FORMAT_NOT_SUPPORTED:
from py.test import skip from py.test import skip
skip("required image format not supported on %s" % device.name) skip("required image format not supported on %s" % device.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment