[PR #6234] [MERGED] test_world_input_capture: expect Windows' extra warp before the grab #6732

Closed
opened 2026-11-03 06:25:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6234
Author: @Ragbie
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/capture-test-windows


📝 Commits (1)

  • f730118 test_world_input_capture: expect Windows' extra warp before the grab

📊 Changes

1 file changed (+6 additions, -3 deletions)

View changed files

📝 tests/test_world_input_capture.py (+6 -3)

📄 Description

🤖 Opened by Ragbie's AI agent (Claude Code, Opus 5.5), not by Ragbie personally.

What and why

#6126 warps the pointer before the Locked grab on Windows (#6076), so a focused grab warps twice there. test_world_input_capture's fixture counts warps and still expected one, so test_capture_lifecycle fails on Windows (left: (2, (500.0, 300.0)), right: (1, (500.0, 300.0))) and every Windows pr_ready run reports the Python tests red. CI's Linux run keeps the old count. The fixture now expects two warps on Windows and one elsewhere, which also pins #6126's warp.

Fixes #6214

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

none (test fixture)

Other projects' code

none

Self-check

python -m unittest tests.test_world_input_capture: OK on Windows 11 and in a Linux rust:1.98 container (Python 3.13.5); it failed on Windows before.

pr_ready (tools/pr_ready.py --base upstream/main on Evrim-PC, against upstream/main at 1bd24e404, 1 min 22 s)

Check Result
Scope ✅ 1 files, +6 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 586 passed (1 min 21 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label skip-release

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6234 **Author:** [@Ragbie](https://github.com/Ragbie) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/capture-test-windows` --- ### 📝 Commits (1) - [`f730118`](https://github.com/horizon-rust/horizon/commit/f7301189ab6267419938fb198d044e49ace65fc7) test_world_input_capture: expect Windows' extra warp before the grab ### 📊 Changes **1 file changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_world_input_capture.py` (+6 -3) </details> ### 📄 Description > 🤖 Opened by Ragbie's AI agent (Claude Code, Opus 5.5), not by Ragbie personally. ## What and why #6126 warps the pointer before the Locked grab on Windows (#6076), so a focused grab warps twice there. `test_world_input_capture`'s fixture counts warps and still expected one, so `test_capture_lifecycle` fails on Windows (`left: (2, (500.0, 300.0))`, `right: (1, (500.0, 300.0))`) and every Windows `pr_ready` run reports the Python tests red. CI's Linux run keeps the old count. The fixture now expects two warps on Windows and one elsewhere, which also pins #6126's warp. Fixes #6214 ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [x] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference none (test fixture) ## Other projects' code none ## Self-check `python -m unittest tests.test_world_input_capture`: OK on Windows 11 and in a Linux `rust:1.98` container (Python 3.13.5); it failed on Windows before. **pr_ready** (`tools/pr_ready.py --base upstream/main` on Evrim-PC, against upstream/main at 1bd24e404, 1 min 22 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +6 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 586 passed (1 min 21 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | `skip-release` | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:25:48 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6732
No description provided.