7LINUX = sys.platform.startswith(
"linux")
8MACOS = sys.platform.startswith(
"darwin")
9WIN = sys.platform.startswith(
"win32")
or sys.platform.startswith(
"cygwin")
11CPYTHON = platform.python_implementation() ==
"CPython"
12PYPY = platform.python_implementation() ==
"PyPy"
14PY2 = sys.version_info.major == 2
21 pytest.deprecated_call() seems broken in pytest<3.9.x; concretely, it
22 doesn
't work on CPython 3.8.0 with pytest==3.3.2 on Ubuntu 18.04 (#2922).
24 This is a narrowed reimplementation of the following PR :(
25 https://github.com/pytest-dev/pytest/pull/4104
28 pieces = pytest.__version__.split(
".")
29 pytest_major_minor = (int(pieces[0]), int(pieces[1]))
30 if pytest_major_minor < (3, 9):
31 return pytest.warns((DeprecationWarning, PendingDeprecationWarning))
33 return pytest.deprecated_call()