Fix tests with pycuda example that now fail in the buildbot.
Merge pull request #1842 from nouiz/fix_pycuda_example

Fix tests with pycuda example that now fail in the buildbot.