Debian Codegraph @

pypy/module/_vmprof/conftest.py

raw symbols SCIP
1 import pytest
2 import platform
3 import sys
4 from os.path import commonprefix, dirname
5
6 THIS_DIR = dirname(__file__)
7
8 @pytest.hookimpl(tryfirst=True)
9 def pytest_ignore_collect(path, config):
10 path = str(path)
11 if sys.platform == 'win32' or platform.machine() == 's390x':
12 if commonprefix([path, THIS_DIR]) == THIS_DIR: # workaround for bug in pytest<3.0.5
13 return True