chaog992
efaa87aba2
tools tests: align test_setup_risk's WSL mock with install() (the KV-streaming rule test failed inside WSL)
...
RulesAgreeWithTheWrittenConfig.test_the_streaming_rule_is_the_flag_setup_writes runs setup.main() through
test_setup_golden's install(), which mocks is_wsl() to False, and then asked setup.kv_streaming_wanted() outside
that mock. Inside WSL the real is_wsl() is True, so the rule answered "no streaming" while the config setup wrote
for the mocked PC has --kv-resident, and the test failed at its first 131072 case (Q2_0, int8, auto). With is_wsl()
the same on both sides, setup and the rule agree in all 54 cases, inside WSL and out.
The test method now runs under the same is_wsl mock as install(), the test-only fix the unsloth tests got for #974
(d1ec32b ). setup.py is unchanged; where is_wsl() is already False (Windows, native Linux) the test runs as before.
Tests: python3 tools/test_setup_risk.py (WSL2, Python 3.12.3: was FAILED (failures=1), now 40 tests OK); the other
27 tools/test_setup_*.py files give the same results as before.
2026-10-09 15:22:14 +02:00
..
2026-10-07 20:32:04 +02:00
2026-10-06 15:57:38 +02:00
2026-09-27 10:18:14 +02:00
2026-10-07 20:42:39 +02:00
2026-10-09 11:51:43 +02:00
2026-10-04 02:38:16 +02:00
2026-10-07 02:33:42 +02:00
2026-10-07 04:07:42 +02:00
2026-10-08 09:56:13 +02:00
2026-10-09 10:01:59 +02:00
2026-09-24 18:42:20 +02:00
2026-10-07 20:23:53 +02:00
2026-09-30 17:52:12 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:43:28 +02:00
2026-10-03 19:29:26 +02:00
2026-10-03 18:19:49 +02:00
2026-10-03 08:04:53 +02:00
2026-10-01 08:46:48 +02:00
2026-09-24 18:42:20 +02:00
2026-09-24 18:42:20 +02:00
2026-09-30 20:36:29 +02:00
2026-10-05 15:58:35 +02:00
2026-10-05 19:57:36 +02:00
2026-10-06 15:57:38 +02:00
2026-09-24 18:42:20 +02:00
2026-09-27 10:18:14 +02:00
2026-09-28 14:53:30 +02:00
2026-09-24 18:42:20 +02:00
2026-09-27 10:18:14 +02:00
2026-10-03 18:14:59 +02:00
2026-10-01 10:31:23 +02:00
2026-10-06 15:57:38 +02:00
2026-10-07 00:01:12 +02:00
2026-10-07 21:07:59 +02:00
2026-10-09 10:30:16 +02:00
2026-10-06 14:58:47 +02:00
2026-10-09 03:06:46 +02:00
2026-10-06 16:35:09 +02:00
2026-10-06 15:57:38 +02:00
2026-10-09 15:15:53 +02:00
2026-10-07 03:02:55 +02:00
2026-10-09 03:04:21 +02:00
2026-10-07 04:07:42 +02:00
2026-10-07 20:37:56 +02:00
2026-10-07 20:23:53 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:31:46 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:31:45 +02:00
2026-09-30 16:31:44 +02:00
2026-10-03 19:29:26 +02:00
2026-10-07 17:34:36 +02:00
2026-10-09 03:21:46 +02:00
2026-10-03 18:19:49 +02:00
2026-10-05 15:58:35 +02:00
2026-10-03 18:14:52 +02:00
2026-10-01 08:28:45 +02:00
2026-10-07 00:01:12 +02:00
2026-10-07 16:14:03 +02:00
2026-10-05 21:44:09 +02:00
2026-10-09 15:17:13 +02:00
2026-10-08 02:31:56 +02:00
2026-10-05 15:58:36 +02:00
2026-10-05 15:58:35 +02:00
2026-10-03 18:19:49 +02:00
2026-10-07 11:42:58 +02:00
2026-10-07 20:46:11 +02:00
2026-10-08 02:28:41 +02:00
2026-10-05 22:46:53 +02:00
2026-10-09 10:24:42 +02:00
2026-10-05 15:58:36 +02:00
2026-10-01 21:03:56 +02:00
2026-10-06 15:57:38 +02:00
2026-10-03 23:35:52 +02:00
2026-10-06 15:57:39 +02:00
2026-10-09 15:16:03 +02:00
2026-10-04 03:36:22 +02:00
2026-10-06 15:57:38 +02:00
2026-10-07 11:42:03 +02:00
2026-10-01 20:46:19 +02:00
2026-10-08 10:03:44 +02:00
2026-10-09 15:22:14 +02:00
2026-10-07 03:57:38 +02:00
2026-10-07 03:57:38 +02:00
2026-09-30 16:31:31 +02:00
2026-10-09 03:15:12 +02:00
2026-10-07 16:14:03 +02:00
2026-10-07 18:20:34 +02:00
2026-10-09 03:06:38 +02:00
2026-10-09 03:15:12 +02:00
2026-10-03 01:58:25 +02:00
2026-10-07 03:02:55 +02:00
2026-10-06 15:57:38 +02:00
2026-10-09 15:15:53 +02:00
2026-10-09 03:04:21 +02:00
2026-10-09 03:04:21 +02:00