Debian Codegraph @

pypy/module/_cffi_backend/test/conftest.py

raw symbols SCIP
1 import os
2 import pytest
3 import sys
4
5 if sys.platform == 'win32':
6 def pytest_configure(config):
7 if config.getoption('direct_apptest'):
8 return
9 # Set up the compiler via rpython.platform when run with CPython 2.7
10 from rpython.translator.platform import host
11 for key in ('PATH', 'LIB', 'INCLUDE'):
12 os.environ[key] = host.c_environ[key]
13 os.environ['DISTUTILS_USE_SDK'] = "1"
14 os.environ['MSSdk'] = "1"
15
16 def pytest_collection_modifyitems(config, items):
17 skip = pytest.mark.skip(reason="PyPy does not report a traceback")
18 for item in items:
19 if item.name == "test_callback_exception":
20 item.add_marker(skip)