@patch('os.path.exists')
def test_resolve_interpreter_with_nonexistent_interpreter(mock_exists):
    mock_exists.return_value = False

    with pytest.raises(SystemExit):
        virtualenv.resolve_interpreter("/usr/bin/python53")

    mock_exists.assert_called_with("/usr/bin/python53")
Get the proper dhcp address to listen on.
dataset/ETHPy150Open pypa/virtualenv/tests/test_virtualenv.py/test_resolve_interpreter_with_nonexistent_interpreter--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/manager.py/NetworkManager._get_dhcp_ip