diff --git a/modules/python/test/test.py b/modules/python/test/test.py index 97c2144303..a40c6c5d7e 100755 --- a/modules/python/test/test.py +++ b/modules/python/test/test.py @@ -34,8 +34,8 @@ def load_tests(loader, tests, pattern): else: print('WARNING: OpenCV tests config file ({}) is missing, running subset of tests'.format(config_file)) - tests_pattern = os.environ.get('OPENCV_PYTEST_FILTER', 'test_') + '*.py' - if tests_pattern != 'test_*py': + tests_pattern = os.environ.get('OPENCV_PYTEST_FILTER', 'test_*') + '.py' + if tests_pattern != 'test_*.py': print('Tests filter: {}'.format(tests_pattern)) processed = set()