[Piglit] [PATCH 5/5] run_parser_tests.py: Use PiglitConfig instead of SafeConfigParser

Dylan Baker baker.dylan.c at gmail.com
Thu Jul 2 16:46:48 PDT 2015


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

diff --git a/framework/tests/run_parser_tests.py b/framework/tests/run_parser_tests.py
index cddaa58..2551a3d 100644
--- a/framework/tests/run_parser_tests.py
+++ b/framework/tests/run_parser_tests.py
@@ -24,7 +24,6 @@ from __future__ import print_function, absolute_import
 import sys
 import os
 import shutil
-import ConfigParser
 
 import nose.tools as nt
 
@@ -108,7 +107,7 @@ class _Helpers(TestWithEnvClean):
 
     def setup(self):
         # Set core.PIGLIT_CONFIG back to pristine between tests
-        core.PIGLIT_CONFIG = ConfigParser.SafeConfigParser()
+        core.PIGLIT_CONFIG = core.PiglitConfig(allow_empty=True)
 
 
 class TestBackend(_Helpers):
-- 
2.4.5



More information about the Piglit mailing list