# -*- coding: utf-8 -*-

import os

import pytest


# You didn't see that.
#
# I hope you don't understand this code.


_config = None


EXAMINATORS = [
    'CI',
    'CONTINUOUS_INTEGRATION',
    'BUILD_ID',
    'BUILD_NUMBER',
    'TEAMCITY_VERSION',
    'TRAVIS',
    'CIRCLECI',
    'JENKINS_URL',
    'HUDSON_URL',
    'bamboo.buildKey',
    'BUILDKITE',
]


@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_makereport(item):
    """Failing test cases are not a problem anymore."""
    outcome = yield
    rep = outcome.get_result()

    examinators = EXAMINATORS
    for examinator in _config.getini('vw_examinators').split('\n'):
        examinators.append(examinator.strip())
    if any(os.environ.get(gaze, False) for gaze in examinators):
        rep.outcome = 'passed'


def pytest_configure(config):
    global _config
    _config = config


def pytest_addoption(parser):
    parser.addini('vw_examinators', 'List of additional VW examinators.')

@@ -117,25 +117,8 @@
 .%0A%0A%0A
-_config = None%0A%0A%0A
 EXAM
@@ -572,17 +572,21 @@
 ator in 
-_
+item.
 config.g
@@ -771,80 +771,8 @@
 '%0A%0A%0A
-def pytest_configure(config):%0A    global _config%0A    _config = config%0A%0A%0A
 def 

Use item.config to access config.