[Piglit] [PATCH 34/44] framework/backends/json.py: use text_type instead for str

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Wed Jan 27 16:06:42 PST 2016


From: Dylan Baker <baker.dylan.c at gmail.com>

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/backends/json.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/backends/json.py b/framework/backends/json.py
index beae8f8..c4074fd 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -67,7 +67,7 @@ def piglit_encoder(obj):
 
     """
     if isinstance(obj, status.Status):
-        return str(obj)
+        return six.text_type(obj)
     elif isinstance(obj, set):
         return list(obj)
     elif hasattr(obj, 'to_json'):
-- 
2.7.0



More information about the Piglit mailing list