def METHOD_NAME(
    local_pex: Pex, rule_runner: RuleRunner
) -> None:
    with pytest.raises(
        ExecutionError,
        match="layout=FLAT_ZIPPED requires output_path to end in '\\.zip', but found output_path='out/file\\.other' ending in '\\.other'",
    ):
        run_and_validate(
            rule_runner,
            PexVenvRequest(
                pex=local_pex,
                layout=PexVenvLayout.FLAT_ZIPPED,
                output_path=Path("out/file.other"),
                description="testing",
            ),
            check_globs_exist=(),
        )