From 19313923cce719f80eee2165a17ccc0254e5d4b2 Mon Sep 17 00:00:00 2001 From: Evgeny Talanin Date: Fri, 10 Aug 2012 14:09:58 +0400 Subject: [PATCH] Use github pat to get data for in python tests (files from code.opencv.org are received truncated sometimes) --- modules/python/test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/python/test/test.py b/modules/python/test/test.py index 5a80832e71..08d8bd8e87 100644 --- a/modules/python/test/test.py +++ b/modules/python/test/test.py @@ -69,7 +69,7 @@ class OpenCVTests(unittest.TestCase): def get_sample(self, filename, iscolor = cv.CV_LOAD_IMAGE_COLOR): if not filename in self.image_cache: - filedata = urllib.urlopen("http://code.opencv.org/projects/opencv/repository/revisions/master/raw/" + filename).read() + filedata = urllib.urlopen("https://raw.github.com/Itseez/opencv/master/" + filename).read() imagefiledata = cv.CreateMatHeader(1, len(filedata), cv.CV_8UC1) cv.SetData(imagefiledata, filedata, len(filedata)) self.image_cache[filename] = cv.DecodeImageM(imagefiledata, iscolor)