

@pytest.mark.bzr
def test_freeze_bazaar_clone(script, tmpdir):
    '\n    Test freezing a Bazaar clone.\n\n    '
    try:
        checkout_path = _create_test_package(script, vcs='bazaar')
    except OSError as e:
        pytest.fail(('Invoking `bzr` failed: %s' % e))
    result = script.run('bzr', 'checkout', checkout_path, 'bzr-package')
    result = script.run('python', 'setup.py', 'develop', cwd=(script.scratch_path / 'bzr-package'), expect_stderr=True)
    result = script.pip('freeze', expect_stderr=True)
    expected = textwrap.dedent('        ...-e bzr+file://...@1#egg=version_pkg\n        ...')
    _check_output(result.stdout, expected)
    result = script.pip('freeze', '-f', ('%s/#egg=django-wikiapp' % script), expect_stderr=True)
    expected = textwrap.dedent(('        -f %(repo)s/#egg=django-wikiapp\n        ...-e bzr+file://...@...#egg=version_pkg\n        ...' % {
        'repo': checkout_path,
    }))
    _check_output(result.stdout, expected)

dataset/ETHPy150Open pypa/pip/tests/functional/test_freeze.py test_freeze_bazaar_clone/VarMisuse@142/268 `checkout_path`->`script`