File: conftest.py

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

import py


def pytest_ignore_collect(path: py.path.local, config: "Config") -> Optional[bool]:
    if sys.version_info[0] == 3 and sys.version_info[1] < 8:
        if str(path).endswith("__py38.py"):
            return True
    return None