[Piglit] [PATCH 19/20] unittests: fix test that tries to unlink open file

Dylan Baker dylan at pnwbakers.com
Wed Jun 1 23:50:26 UTC 2016


Which works just fine on Linux and doesn't on Windows.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 unittests/core_tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unittests/core_tests.py b/unittests/core_tests.py
index 0e55ca3..7cb6745 100644
--- a/unittests/core_tests.py
+++ b/unittests/core_tests.py
@@ -174,7 +174,7 @@ def test_piglit_root():
         f.write(_CONF_FILE)
         with utils.nose.chdir('..'):
             core.get_config()
-        os.unlink('piglit.conf')
+    os.unlink('piglit.conf')
 
     nt.ok_(core.PIGLIT_CONFIG.has_section('nose-test'),
            msg='$PIGLIT_ROOT not found')
-- 
2.8.3



More information about the Piglit mailing list