[Piglit] [PATCH 15/49] unittests: port opencv_tests to pytest

Dylan Baker dylan at pnwbakers.com
Fri Jul 29 18:39:01 UTC 2016


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 unittests/{opencv_tests.py => framework/test/test_opencv.py} | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
 rename unittests/{opencv_tests.py => framework/test/test_opencv.py} (89%)

diff --git a/unittests/opencv_tests.py b/unittests/framework/test/test_opencv.py
similarity index 89%
rename from unittests/opencv_tests.py
rename to unittests/framework/test/test_opencv.py
index ea60362..c804c0b 100644
--- a/unittests/opencv_tests.py
+++ b/unittests/framework/test/test_opencv.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2014 Intel Corporation
+# Copyright (c) 2014, 2016 Intel Corporation
 
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -18,17 +18,15 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
-""" Module for testing opencv """
+"""Module for testing opencv."""
 
 from __future__ import (
     absolute_import, division, print_function, unicode_literals
 )
 
-from . import utils
 from framework.test import OpenCVTest
 
 
- at utils.nose.no_error
-def test_initialize_opencvtest():
+def test_initialize():
     """test.opencv.OpenCVTest: Class initializes"""
     OpenCVTest('test_prog', 'testname')
-- 
2.9.0



More information about the Piglit mailing list