[PR #1781] [MERGED] tests/docs: read an indented code block as code, not prose (OLD-9836) #1795

Closed
opened 2026-11-26 21:18:59 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1781
Author: @Ch1mpleo
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta

Base: main ← Head: carry/old-9836


📝 Commits (1)

  • 41639e8 tests/docs: read an indented code block as code, not prose

📊 Changes

1 file changed (+18 additions, -1 deletions)

View changed files

📝 tests/test_docs_repeated_lines.py (+18 -1)

📄 Description

Claimed in the coordination issue as: OLD-9836 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161825065)

What and why

Carries forward old-pr/9836 (draft #104, keeping
oosko21-a11y's original commit rebased onto current main). Fixes ests/test_docs_repeated_lines.py::repeated_lines to treat 4-space and tab-indented Markdown code blocks as code rather than prose, and adds est_checker_ignores_indented_code_blocks.

Tested

  • python -I tests/test_docs_repeated_lines.py — 3 tests, OK (Windows 11 x64, Python 3.14.7, CPU-only, no game files).
  • python -I scripts/check_no_game_data.py tests/test_docs_repeated_lines.py — exit 0.
  • python -m compileall -q tests/test_docs_repeated_lines.py — exit 0.

GPUs tested: n/a (CPU-only standard-library unit test)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds 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 — unit test fix only)

🔄 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/ubiquitarianism/leonida/pull/1781 **Author:** [@Ch1mpleo](https://github.com/Ch1mpleo) **Created:** 11/25/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@Andretuta](https://github.com/Andretuta) **Base:** `main` ← **Head:** `carry/old-9836` --- ### 📝 Commits (1) - [`41639e8`](https://github.com/ubiquitarianism/leonida/commit/41639e8997e06e474111059e512bebd9aff5b84e) tests/docs: read an indented code block as code, not prose ### 📊 Changes **1 file changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_docs_repeated_lines.py` (+18 -1) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9836 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161825065) ### What and why Carries forward old-pr/9836 (draft #104, keeping oosko21-a11y's original commit rebased onto current main). Fixes ests/test_docs_repeated_lines.py::repeated_lines to treat 4-space and tab-indented Markdown code blocks as code rather than prose, and adds est_checker_ignores_indented_code_blocks. ### Tested - python -I tests/test_docs_repeated_lines.py — 3 tests, OK (Windows 11 x64, Python 3.14.7, CPU-only, no game files). - python -I scripts/check_no_game_data.py tests/test_docs_repeated_lines.py — exit 0. - python -m compileall -q tests/test_docs_repeated_lines.py — exit 0. GPUs tested: n/a (CPU-only standard-library unit test) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds 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 — unit test fix only) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:18:59 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
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
starred/leonida#1795
No description provided.