[Piglit] [PATCH 1/3] log_tests.py: Fix imports

Dylan Baker baker.dylan.c at gmail.com
Tue Sep 16 14:46:56 PDT 2014


Remove unused imports and fix use of wildcard imports

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

diff --git a/framework/tests/log_tests.py b/framework/tests/log_tests.py
index d2cb336..f04040c 100644
--- a/framework/tests/log_tests.py
+++ b/framework/tests/log_tests.py
@@ -20,9 +20,7 @@
 
 """ Module provides tests for log.py module """
 
-import sys
-import itertools
-from types import *  # This is a special * safe module
+import types
 import nose.tools as nt
 from framework.log import Log
 import framework.tests.utils as utils
@@ -47,8 +45,9 @@ def test_pre_log_return():
     log = Log(100, False)
 
     ret = log.pre_log()
-    nt.assert_true(isinstance(ret, (IntType, FloatType, LongType)),
-                   msg="Log.pre_log() didn't return a numeric type!")
+    nt.assert_true(
+        isinstance(ret, (types.IntType, types.FloatType, types.LongType)),
+        msg="Log.pre_log() didn't return a numeric type!")
 
 
 def test_post_log_increment_complete():
-- 
2.1.0



More information about the Piglit mailing list