weldx_widgets/tests/util.py
def temp_env(**kw):
    """Temporarily set env variables to given mapping."""
    old = os.environ.copy()
    os.environ.update(**kw)

    yield

    os.environ = old
Temporarily set env variables to given mapping.
Temporarily set env variables to given mapping.
Temporarily set env variables to given mapping .
def temp_env(**kw):
    old = os.environ.copy()
    os.environ.update(**kw)
    yield
    os.environ = old
def temp_env ( ** kw ) : old = os . environ . copy ( ) os . environ . update ( ** kw ) yield os . environ = old
Temporarily set env variables to given mapping.
Temporarily set env variables to given mapping .
"""Temporarily set env variables to given mapping."""