pytest_ignore_collect()   B
last analyzed

Complexity

Conditions 6

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 6
c 1
b 0
f 0
dl 0
loc 5
rs 8
1
import sys
2
PY3 = sys.version_info[0] >= 3
3
4
def pytest_ignore_collect(path, config):
5
    basename = path.basename
6
7
    if not PY3 and "py3" in basename or PY3 and "py2" in basename or 'pytest' in basename:
8
        return True
9