Re: [Piglit] [PATCH 2/2] framework: Make driver_classifier convert to str (unicode)

2016-09-17 Thread Eric Anholt
Dylan Baker writes: > In python2 the code as is works, although there might be odd corners. In > python 3 it fails because the code tries to match bytes and strs, which > doesn't work at all. > > This patch fixes the issue by converting the output from bytes to str >

[Piglit] [PATCH 2/2] framework: Make driver_classifier convert to str (unicode)

2016-09-16 Thread Dylan Baker
In python2 the code as is works, although there might be odd corners. In python 3 it fails because the code tries to match bytes and strs, which doesn't work at all. This patch fixes the issue by converting the output from bytes to str (unicode) immediately, so we don't have to think about it