opencv/modules/python/test/test.py

25 lines
507 B
Python
Raw Normal View History

#!/usr/bin/env python
from __future__ import print_function
2017-09-03 20:01:25 +08:00
import os
2017-09-03 20:01:25 +08:00
import unittest
# Python 3 moved urlopen to urllib.requests
try:
from urllib.request import urlopen
except ImportError:
from urllib import urlopen
2016-01-28 20:43:08 +08:00
from tests_common import NewOpenCVTests
basedir = os.path.abspath(os.path.dirname(__file__))
def load_tests(loader, tests, pattern):
tests.addTests(loader.discover(basedir, pattern='test_*.py'))
return tests
if __name__ == '__main__':
2017-09-03 20:01:25 +08:00
NewOpenCVTests.bootstrap()