Parse a version string into a tuple of integers, ignoring suffixes. Args: version (str): The version string to parse. Returns: tuple: A tuple of integers representing the version.
(version)
| 133 | return (_numtests, _failed, unrecognized) |
| 134 | |
| 135 | def parse_version(version): |
| 136 | """ |
| 137 | Parse a version string into a tuple of integers, ignoring suffixes. |
| 138 | |
| 139 | Args: |
| 140 | version (str): The version string to parse. |
| 141 | |
| 142 | Returns: |
| 143 | tuple: A tuple of integers representing the version. |
| 144 | """ |
| 145 | numeric_part = re.match(r'(\d+(\.\d+)*).*', version) |
| 146 | if numeric_part: |
| 147 | return tuple(map(int, numeric_part.group(1).split('.'))) |
| 148 | raise ValueError(f"Invalid version format: {version}") |
| 149 | |
| 150 | |
| 151 | def should_skip_object(type, arversion, current_ver): |
no test coverage detected