summaryrefslogtreecommitdiff
path: root/framework/test/opengl.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-01-12 16:01:02 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2016-02-08 12:29:34 -0800
commit60d848ed60997352e3ce375974a8202784261488 (patch)
tree4be70964d9d80911c0e8595272de75f28d3629c3 /framework/test/opengl.py
parenta0cb4ea9c28acf664e90a755ee4a48c9c21032ed (diff)
framework,unittests: use __future__ unicode_literals
Use unicode_literals from __future__. This makes undecorated strings (those not using and b or u prefix) into unicode instead of bytes in python 2. This means that bytes strings need to have a b prefix now. This also fixes a couple of unittests that broke during the transition. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'framework/test/opengl.py')
-rw-r--r--framework/test/opengl.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/test/opengl.py b/framework/test/opengl.py
index af0cc560b..755e3e3f4 100644
--- a/framework/test/opengl.py
+++ b/framework/test/opengl.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2015 Intel Corporation
+# Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -20,7 +20,9 @@
"""Mixins for OpenGL derived tests."""
-from __future__ import absolute_import, division, print_function
+from __future__ import (
+ absolute_import, division, print_function, unicode_literals
+)
import errno
import os
import subprocess