Debian Codegraph @

pypy/module/micronumpy/test/conftest.py

raw symbols SCIP
1 import os
2 import pytest
3 import sys
4
5 disabled = True # disable on py3
6 THIS_DIR = os.path.dirname(__file__)
7
8 if sys.maxsize > 2**32 and sys.platform == 'win32':
9 # micronumpy not yet supported on windows 64 bit
10 disabled = True
11
12 def pytest_ignore_collect(path, config):
13 path = str(path)
14 if disabled:
15 if os.path.commonprefix([path, THIS_DIR]) == THIS_DIR: # workaround for bug in pytest<3.0.5
16 return True
17
18 def pytest_collect_file(path, parent):
19 if disabled:
20 # We end up here when calling py.test .../test_foo.py directly
21 # It's OK to kill the whole session with the following line
22 pytest.skip("cpyext not yet supported on windows 64 bit")