[Piglit] [PATCH 20/21] all.py: use __future__ functions

Dylan Baker baker.dylan.c at gmail.com
Tue Feb 24 17:34:52 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 77c0faa..fd69b6e 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.3.0



More information about the Piglit mailing list