docs/testing.md: Python 3.12+, as make_game.py requires (DOC-TESTING-PYTHON-MIN) #1471

Manually merged
github merged 1 commit from gh-pr/1471/head into gh-pr/1471/base 2026-11-26 09:52:54 +00:00
Owner

@⁠LouisRiverstone on GitHub · 2026-11-25 00:56 UTC · original
LouisRiverstone:doc-testing-python-min → main · +3 −2 · 1 files · 1 commits · merged 2026-11-25 21:24 UTC

Claimed in the coordination issue as: DOC-TESTING-PYTHON-MIN (#14)

What and why

docs/testing.md gives a lower Python minimum than the code accepts:

  • "What you need" (line 16) says Python 3.11+.
  • The troubleshooting row for the dict | None annotation error (line 759) says "Use Python 3.11+".

make_game.py requires 3.12. It exits with "Python 3.12 or newer is needed" at make_game.py:66, and its preflight lists the same requirement at :859. The README says 3.12+, and every CI job uses 3.12. So a tester who follows this page and installs 3.11 can't run make_game.py, and make_game.py's own tests fail.

Both lines now say 3.12+. The note that scripts/run_gpu_tests.py on its own runs on 3.10 or newer stays.

Tested

  • I ran tests/test_make_game*.py with CPython 3.11 on Windows 11, on current main. Seven files fail, and the failures come from that version check: AssertionError: 1 != 0 : ERROR: Python 3.12 or newer is needed. On 3.14 they pass.
  • tests/test_docs_*.py (12 files): all OK. git diff --check is clean.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: documentation only)
**@⁠LouisRiverstone** on GitHub · 2026-11-25 00:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1471) `LouisRiverstone:doc-testing-python-min` → `main` · +3 −2 · 1 files · 1 commits · merged 2026-11-25 21:24 UTC Claimed in the coordination issue as: DOC-TESTING-PYTHON-MIN (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why `docs/testing.md` gives a lower Python minimum than the code accepts: - "What you need" (line 16) says **Python 3.11+**. - The troubleshooting row for the `dict | None` annotation error (line 759) says "Use Python 3.11+". `make_game.py` requires 3.12. It exits with "Python 3.12 or newer is needed" at `make_game.py:66`, and its preflight lists the same requirement at `:859`. The README says 3.12+, and every CI job uses 3.12. So a tester who follows this page and installs 3.11 can't run `make_game.py`, and `make_game.py`'s own tests fail. Both lines now say 3.12+. The note that `scripts/run_gpu_tests.py` on its own runs on 3.10 or newer stays. ### Tested - I ran `tests/test_make_game*.py` with CPython 3.11 on Windows 11, on current `main`. Seven files fail, and the failures come from that version check: `AssertionError: 1 != 0 : ERROR: Python 3.12 or newer is needed`. On 3.14 they pass. - `tests/test_docs_*.py` (12 files): all OK. `git diff --check` is clean. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: documentation only)
"What you need" said Python 3.11+ and the dict | None troubleshooting row said
to use 3.11+, but make_game.py stops on anything older than 3.12 (as the README
and every CI job say), so its tests fail on 3.11. scripts/run_gpu_tests.py on
its own still runs on 3.10+.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:52:38 +00:00
github manually merged commit 1f6acd893d into gh-pr/1471/base 2026-11-26 09:52:53 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 15:35 UTC · original

Reviewed 1f6acd893: docs-only change (docs/testing.md: Python 3.11+ -> 3.12+, plus the dict | None row's remedy). Verified without game files using real standalone CPython 3.9/3.10/3.11: make_game.py exits with "Python 3.12 or newer is needed" on 3.11 and its tests fail there (test_make_game_preflight: 5 failures, 16 errors on 3.11; OK on 3.12 on both trees), scripts/run_gpu_tests.py --help runs on 3.10 and 3.11 and fails on 3.9 with the unsupported-| TypeError the row describes, and README and all 7 CI jobs pin 3.12. tests/test_docs_design_rows.py passes on the branch, on main and on the page merged into current main. No findings.

AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 15:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1471#issuecomment-7167085034) Reviewed 1f6acd893: docs-only change (docs/testing.md: Python 3.11+ -> 3.12+, plus the dict | None row's remedy). Verified without game files using real standalone CPython 3.9/3.10/3.11: make_game.py exits with "Python 3.12 or newer is needed" on 3.11 and its tests fail there (test_make_game_preflight: 5 failures, 16 errors on 3.11; OK on 3.12 on both trees), scripts/run_gpu_tests.py --help runs on 3.10 and 3.11 and fails on 3.9 with the unsupported-`|` TypeError the row describes, and README and all 7 CI jobs pin 3.12. tests/test_docs_design_rows.py passes on the branch, on main and on the page merged into current main. No findings. AI-assisted review. **Recommendation:** Merge
This discussion has been locked. Commenting is limited to contributors.
No description provided.