Whole file
robotframework/robotframework
The author described this change as “Minor fix to `split_args_from_name_or_path`”. It counts as a record because the check below fails on the code as it stood at 42ffb17d5 and passes on 0df07fd8f, with nothing else changed between the two runs.
Fix saved2026-05-25
Sharing licenceApache-2.0 · LICENSE.txt
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Minor fix to `split_args_from_name_or_path`
The change
| 151 | 151 | def _get_arg_separator_index_from_name_or_path(name): | |
| 152 | 152 | colon_index = name.find(":") | |
| 153 | 153 | # Handle absolute Windows paths | |
| 154 | - | if colon_index == 1 and name[2:3] in ("/", "\\"): | |
| 154 | + | if colon_index == 1 and name[0].isalpha() and name[2:3] in ("/", "\\"): | |
| 155 | 155 | colon_index = name.find(":", colon_index + 1) | |
| 156 | 156 | semicolon_index = name.find(";") | |
| 157 | 157 | if colon_index == -1: |
The check that tells the two apart
fail→pass·utest/utils/test_text.py::TestSplitArgsFromNameOrPath::test_non_alpha_cannot_be_drive_letter
Check file utest/utils/test_text.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it42ffb17d5001fac6dd1b9b951ccab590f45a7d73
Broken version dated2026-05-25
Modulerobot.utils.text
Units changed_get_arg_separator_index_from_name_or_path
Fingerprint9f2fca728d945bcd
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.