You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Micah Kornfield (Jira)" <ji...@apache.org> on 2020/10/22 05:11:00 UTC
[jira] [Created] (ARROW-10367) [Archery] unit tests seem to be
broken due to "patch" argument not being on constructor
Micah Kornfield created ARROW-10367:
---------------------------------------
Summary: [Archery] unit tests seem to be broken due to "patch" argument not being on constructor
Key: ARROW-10367
URL: https://issues.apache.org/jira/browse/ARROW-10367
Project: Apache Arrow
Issue Type: Bug
Components: Archery
Reporter: Micah Kornfield
Assignee: Micah Kornfield
{{Patch is not a keyword on Version.}}
{{[https://github.com/apache/arrow/pull/8475/checks?check_run_id=1290624398]}}
{{cls = <class 'archery.release.Version'>, version = '0.17.1'}}{{@classmethod}}
{{ def parse(cls, version):}}
{{ """}}
{{ Parse version string to a VersionInfo instance.}}
{{ :param version: version string}}
{{ :return: a :class:`VersionInfo` instance}}
{{ :raises: :class:`ValueError`}}
{{ :rtype: :class:`VersionInfo`}}
{{ .. versionchanged:: 2.11.0}}
{{ Changed method from static to classmethod to}}
{{ allow subclasses.}}
{{ >>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')}}
{{ VersionInfo(major=3, minor=4, patch=5, \}}
{{ prerelease='pre.2', build='build.4')}}
{{ """}}
{{ match = cls._REGEX.match(ensure_str(version))}}
{{ if match is None:}}
{{ raise ValueError("%s is not valid SemVer string" % version)}}
{{ version_parts = match.groupdict()}}
{{ version_parts["major"] = int(version_parts["major"])}}
{{ version_parts["minor"] = int(version_parts["minor"])}}
{{ version_parts["patch"] = int(version_parts["patch"])}}
{{> return cls(**version_parts)}}
{{E TypeError: __init__() got an unexpected keyword argument 'patch'}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)