

def _change_test_package_version(script, version_pkg_path):
    version_pkg_path.join('version_pkg.py').write(textwrap.dedent('        def main():\n            print("some different version")'))
    script.run('git', 'clean', '-qfdx', cwd=script, expect_stderr=True)
    script.run('git', 'commit', '-q', '--author', 'pip <pypa-dev@googlegroups.com>', '-am', 'messed version', cwd=version_pkg_path, expect_stderr=True)

dataset/ETHPy150Open pypa/pip/tests/lib/__init__.py _change_test_package_version/VarMisuse@41/83 `version_pkg_path`->`script`