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
test: gate POSIX-only stdlib (resource, signal.alarm, chmod modes) on the Windows leg #2102
Job 120605026883, the first Windows run of #2095's leg, fails on POSIX-only stdlib used by the tests:
resource:test_extraction_no_eof's CHILD_PREAMBLE imports it (5 cases). test_tier_guard::PythonStubTests::test_the_capped_command_is_recorded_without_the_real_interpreter runs util/cap_file_size.py, which is POSIX-only by design.
signal.alarm:tests/test_support_helpers.py and tests/protocols/test_option_generator_deadline_scale_1428_unit.py error at collection on a module-level signal.alarm.
Mode bits:test_vendor_snapshot_restore_unit::…previous_file_byte_for_byte_intact expects 0o640 and gets 0o666, because Windows chmod sets only the read-only bit.
Proposed: an empty CHILD_CAP on nt, as on GraalPy; getattr(signal, 'alarm', None) plus a skip; and skip the mode check on nt.
Fixed on main as 47cfedd54 (test-only): the resource import moved into CHILD_CAP, which is empty on nt; signal.alarm is read with getattr, and those tests skip without it; the cap_file_size case and the vendor test's 0o640 mode check skip on nt. test_windows_posix_gates_2102_unit fakes Windows and fails 5 checks without the change.
Activity
test: skip POSIX-only stdlib on Windows (#2102)
JarryShaw commentedon Oct 23, 2026
Fixed on
mainas47cfedd54(test-only): theresourceimport moved intoCHILD_CAP, which is empty onnt;signal.alarmis read withgetattr, and those tests skip without it; thecap_file_sizecase and the vendor test's0o640mode check skip onnt.test_windows_posix_gates_2102_unitfakes Windows and fails 5 checks without the change.