Skip to content

Commit ca9cbab

Browse files
committed
Merge pull request opencv#19403 from diablodale:fix_19402_python_test_filter_34
2 parents 573812d + 5c70a20 commit ca9cbab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/python/test/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def load_tests(loader, tests, pattern):
3434
else:
3535
print('WARNING: OpenCV tests config file ({}) is missing, running subset of tests'.format(config_file))
3636

37-
tests_pattern = os.environ.get('OPENCV_PYTEST_FILTER', 'test_') + '*.py'
38-
if tests_pattern != 'test_*py':
37+
tests_pattern = os.environ.get('OPENCV_PYTEST_FILTER', 'test_*') + '.py'
38+
if tests_pattern != 'test_*.py':
3939
print('Tests filter: {}'.format(tests_pattern))
4040

4141
processed = set()

0 commit comments

Comments
 (0)