def METHOD_NAME(rule_runner: PythonRuleRunner) -> None:
    rule_runner.write_files(
        {
            "BUILD": dedent(
                """\
                python_requirement(name='t1', requirements=[], resolve='a')
                python_source(name='t2', source='f.py', resolve='b')
                """
            )
        }
    )
    with engine_error(NoCompatibleResolveException, contains="pants peek"):
        run_repl(
            rule_runner,
            ["//:t1", "//:t2"],
            global_args=["--python-resolves={'a': '', 'b': ''}", "--python-enable-resolves"],
        )