Merge pull request #6078 from PolarNick239:master
authorVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Wed, 5 Oct 2016 17:27:23 +0000 (17:27 +0000)
committerVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Wed, 5 Oct 2016 17:27:23 +0000 (17:27 +0000)
1  2 
modules/java/generator/gen_java.py
modules/python/src2/cv2.cpp
modules/python/src2/gen2.py
modules/python/test/test.py

Simple merge
Simple merge
Simple merge
index a2d3698,2011e30..5a66769
mode 100755,100644..100755
@@@ -133,10 -219,6 +187,10 @@@ if __name__ == '__main__'
      print("Testing OpenCV", cv2.__version__)
      print("Local repo path:", args.repo)
      NewOpenCVTests.repoPath = args.repo
 +    try:
 +        NewOpenCVTests.extraTestDataPath = os.environ['OPENCV_TEST_DATA_PATH']
 +    except KeyError:
 +        print('Missing opencv extra repository. Some of tests may fail.')
      random.seed(0)
      unit_argv = [sys.argv[0]] + other;
-     unittest.main(argv=unit_argv)
+     unittest.main(argv=unit_argv)