def test_pexrc_precedence():
  with named_temporary_file(mode='w') as pexrc:
    pexrc.write('HELLO=FORTYTWO')
    pexrc.flush()
    v = Variables(environ={'HELLO': 42}, rc=pexrc.name)
    assert v._get_int('HELLO') == 42
dataset/ETHPy150Open pantsbuild/pex/tests/test_variables.py/test_pexrc_precedence/original