[Piglit] [RFC v2 38/39] all.py: use __future__ functions

Dylan Baker baker.dylan.c at gmail.com
Mon Feb 2 17:37:43 PST 2015


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 tests/all.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/all.py b/tests/all.py
index f6bd2f2..0da1023 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -1,8 +1,7 @@
 # -*- coding: utf-8 -*-
 # All tests that come with piglit, using default settings
 
-__all__ = ['profile']
-
+from __future__ import print_function, division, absolute_import
 import itertools
 import os
 import platform
@@ -11,7 +10,9 @@ from framework import grouptools
 from framework.profile import TestProfile
 from framework.test import (PiglitGLTest, GleanTest, ShaderTest,
                             GLSLParserTest, GLSLParserNoConfigError)
-from py_modules.constants import TESTS_DIR, GENERATED_TESTS_DIR
+from .py_modules.constants import TESTS_DIR, GENERATED_TESTS_DIR
+
+__all__ = ['profile']
 
 
 def add_single_param_test_set(adder, name, *params):
-- 
2.2.2



More information about the Piglit mailing list