You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/ansible/lib/vars/custom_modifies_os_environ.py

13 lines
309 B
Python

# https://github.com/dw/mitogen/issues/297
from __future__ import (absolute_import, division, print_function)
import os
class VarsModule(object):
def __init__(self, *args):
os.environ['EVIL_VARS_PLUGIN'] = 'YIPEEE'
def get_vars(self, loader, path, entities, cache=True):
return {}