# Pytest customization

import os
import pytest


def pytest_runtest_setup(item):
    mark = item.get_marker("xslow")
    if mark is not None:
        try:
            v = int(os.environ.get('SCIPY_XSLOW', '0'))
        except ValueError:
            v = False
        if not v:
            pytest.skip("very slow test; set environment variable SCIPY_XSLOW=1 to run it")

enable special handling of pytest.mark.xslow