We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d59472b + 019de55 commit fed2a27Copy full SHA for fed2a27
modules/python/test/test.py
@@ -2,6 +2,9 @@
2
3
from __future__ import print_function
4
5
+import sys
6
+sys.dont_write_bytecode = True # Don't generate .pyc files / __pycache__ directories
7
+
8
import os
9
import unittest
10
@@ -17,7 +20,7 @@
17
20
basedir = os.path.abspath(os.path.dirname(__file__))
18
21
19
22
def load_tests(loader, tests, pattern):
- tests.addTests(loader.discover(basedir, pattern='test_*.py'))
23
+ tests.addTests(loader.discover(basedir, pattern=os.environ.get('OPENCV_PYTEST_FILTER', 'test_') + '*.py'))
24
return tests
25
26
if __name__ == '__main__':
0 commit comments