You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tests: under a C locale, test_execute_refuses_a_local_source_directory_holding_a_bidi_control errors at mkdir, because its except OSError does not catch the UnicodeEncodeError that U+202E raises there, where it should skip #854
Goal: where this system's file name encoding cannot spell U+202E, the U+202E test in tests/test_adopt_template_values.py skips and says why, as the tests of a name that is not UTF-8 do, and does not end in an error.
Filed by lane openRepoShape-5, from w834's report on the fix round of #834's PR (#845, efb17273). Tests only.
Lines
Under PYTHONUTF8=0 LC_ALL=C PYTHONCOERCECLOCALE=0, test_execute_refuses_a_local_source_directory_holding_a_bidi_control errors at parent.mkdir() (tests/test_adopt_template_values.py:311-316 at main 6f64eea2). Measured.
Why it errors: the file name encoding there is ASCII, so mkdir raises UnicodeEncodeError ('ascii' codec can't encode character '\u202e', from pathlib.py:1313). That is a ValueError, not an OSError, so the test's except OSError at :314 does not catch it.
Under PYTHONUTF8=0 LC_ALL=C PYTHONCOERCECLOCALE=0, the test skips with that reason.
Under UTF-8, it runs and passes as it does now.
A mutant that drops the new check makes the C-locale run error again.
Lands after:#806 (fix/757-non-utf8-test-dirs) and #845 (fix/834-oserror-skips, stacked on #806). Both edit this file, and at #845's head this test's call of refused_then_moved passes skip_where_git_fails=False.
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-18T02:23:40Z, for #854
Logged in lanes/log/openRepoShape-3.md at 7c4a0b1aeb35e7316c56d406cc36fc1520ff0942.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#854:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#854"`, kept where the row or its body names `#854`:
845 tests: three tests ask the helper whether a name can be made, `make_file` skips on EILSEQ or a `UnicodeError` only and the U+202E directory has no guard, so a full disk or a read-only `tmp_path` fails the test, not SKIPPED (#834) fix/834-oserror-skips OPEN
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `854` as a whole token:
none
Activity
tests: `raised_for_every_errno` passes the errno's label to the failu…
brettheap commentedon Oct 18, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-18T02:23:40Z, for #854
Logged in
lanes/log/openRepoShape-3.mdat7c4a0b1aeb35e7316c56d406cc36fc1520ff0942.The three reads (lane-collision-protocol Rule 1):
tests: the three tests of the byte directory have Windows rows that h…
tests: the six template-value tests that raised `UnicodeEncodeError` …
tests: windows_fsencode takes a path as os.fsencode does, and six row…
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's NIT list …
tests: three tests ask the helper whether a name can be made, `make_f…
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's round 3 a…
docs/release-notes/v1.1.1.md: the v1.1.1 notes run to main a249910, w…
tests: six skips on a failed git call ask the system first, so a fail…
docs/release-notes/v1.1.1.md: the v1.1.1 notes run to main 0d5d2b1, w…