# Copyright 2017 Palantir Technologies, Inc.
import sys
import os
import pytest
from pyls import IS_WIN

IS_PY3 = sys.version_info.major == 3

unix_only = pytest.mark.skipif(IS_WIN, reason="Unix only")
windows_only = pytest.mark.skipif(not IS_WIN, reason="Windows only")
py3_only = pytest.mark.skipif(not IS_PY3, reason="Python3 only")
py2_only = pytest.mark.skipif(IS_PY3, reason="Python2 only")

# Are we in the middle of a Debian package build?
# Some tests only make sense once the package is installed, so we skip those.
is_building = 'DEB_BUILD_ARCH' in os.environ
installed_only = pytest.mark.skipif(is_building, reason="Post-install only")
