File: conftest.py

package info (click to toggle)
python-overrides 7.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: python: 1,661; sh: 5; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import sys
from pathlib import Path
from typing import Optional


def pytest_ignore_collect(collection_path: Path) -> Optional[bool]:
    if sys.version_info[0] == 3 and sys.version_info[1] < 8:
        if str(collection_path.name).endswith("__py38.py"):
            return True
    return None