

def test_pex_from_rc():
    with named_temporary_file(mode='w') as pexrc:
        pexrc.write('HELLO=42')
        pexrc.flush()
        v = Variables(rc=pexrc.name)
        assert (v._get_int('HELLO') == 42)

dataset/ETHPy150Open pantsbuild/pex/tests/test_variables.py test_pex_from_rc/original