def METHOD_NAME(env):
    assert env.sys_version_info[:2] == (3, 1)
    pytest_location, pytest_version = _scan(env)
    if parse_version(pytest_version) >= parse_version("2.6.0"):
        return
    print("Patching installed pytest package...")
    file_path = os.path.join(pytest_location, "_pytest", "runner.py")
    file_temp_path = _file_temp_path(file_path)
    try:
        try:
            prepatched_count, patched_count = _patch(file_path, file_temp_path,
                unpatched_regex="(.*\s)callable([(].*)$",
                patched_regex="(.*\s)py[.]builtin[.]callable([(].*)",
                patch_pattern="%spy.builtin.callable%s")
            if (prepatched_count, patched_count) not in ((1, 0), (0, 1)):
                _error(file_path, "file content not recognized")
            if prepatched_count:
                print("WARNING: pytest already patched")
            else:
                os.remove(file_path)
                os.rename(file_temp_path, file_path)
        finally:
            _try_remove_file(file_temp_path)
    except (EnvironmentSetupError, KeyboardInterrupt, SystemExit):
        raise
    except Exception:
        _error(file_path, str(sys.exc_info()[1]))