tests: two empty __init__.py make 'pytest tests/' collect at all #2869

Closed
fiestorra wants to merge 2 commits from upstream-pr/2869 into main
fiestorra commented 2026-12-01 11:54:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T11:54:21Z.


pytest tests/ collects 19,086 tests with this, against 19,079 and one collection error without it - so the full Python suite has not been runnable as a whole.

The error:

$ python3 -m pytest tests/ -q
ERROR tests/test_address_guard.py
!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!

________________ ERROR collecting tests/test_address_guard.py _________________
import file mismatch:
imported module 'test_address_guard' has this __file__ attribute:
  E:\ports\repos\leonida\tests\semantic\test_address_guard.py
which is not the same as the test file we want to collect:
  E:\ports\repos\leonida\tests\test_address_guard.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

Two files with the same basename: tests/test_address_guard.py (101 lines, the parity of tools/address_guard.py with runtime/src/address_guard.h) and tests/semantic/test_address_guard.py (160 lines, rdna2spirv.py --address-guard). Neither directory is a package, so pytest puts both in sys.modules under test_address_guard and the second one is the same key as the first.

This change adds two empty __init__.py files. That gives them tests.test_address_guard and tests.semantic.test_address_guard, and nothing else moves.

Measured:

pytest tests/ --co -q
  before:  19079 collected, 1 error, exit 2
  after:   19086 collected, exit 0

Thirty-one thousand lines of tests have been runnable one file or one directory at a time, and this is the reason. Both files pass on their own (tests/test_address_guard.py: 7 passed, 2 subtests; the semantic one likewise) - the failure was only ever about collecting them together.

Why not rename one of them: docs/d3d12_vulkan.md:2095 and docs/design.md:384 cite the semantic file by path, and a rename means editing two documents to fix an import. A package marker does the same job with no path changing.

Why not consider_namespace_packages: that is a pytest 8+ ini setting, and this repository has no pytest configuration at all (no pytest.ini, no [tool.pytest], only tests/conftest.py). Two empty files are smaller than introducing one.

What I have not run: the whole suite after this change. I am running it now and will report what it finds - which is the point of making it collectable: nobody knows what 19,086 tests say together, because nobody could ask.

AI-assisted: yes - DeepSeek v4.1 (flash), which ran the suite and read the error it had been ignoring.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5585149252 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T11:54:21Z. --- **`pytest tests/` collects 19,086 tests with this, against 19,079 and one collection error without it - so the full Python suite has not been runnable as a whole.** **The error:** ``` $ python3 -m pytest tests/ -q ERROR tests/test_address_guard.py !!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!! ________________ ERROR collecting tests/test_address_guard.py _________________ import file mismatch: imported module 'test_address_guard' has this __file__ attribute: E:\ports\repos\leonida\tests\semantic\test_address_guard.py which is not the same as the test file we want to collect: E:\ports\repos\leonida\tests\test_address_guard.py HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules ``` **Two files with the same basename**: `tests/test_address_guard.py` (101 lines, the parity of `tools/address_guard.py` with `runtime/src/address_guard.h`) **and** `tests/semantic/test_address_guard.py` (160 lines, `rdna2spirv.py --address-guard`). **Neither directory is a package, so pytest puts both in `sys.modules` under `test_address_guard` and the second one is the same key as the first.** **This change adds two empty `__init__.py` files.** **That gives them `tests.test_address_guard` and `tests.semantic.test_address_guard`, and nothing else moves.** **Measured:** ``` pytest tests/ --co -q before: 19079 collected, 1 error, exit 2 after: 19086 collected, exit 0 ``` **Thirty-one thousand lines of tests have been runnable one file or one directory at a time, and this is the reason.** **Both files pass on their own** (`tests/test_address_guard.py`: 7 passed, 2 subtests; the semantic one likewise) - **the failure was only ever about collecting them together.** **Why not rename one of them**: **`docs/d3d12_vulkan.md:2095` and `docs/design.md:384` cite the semantic file by path**, **and a rename means editing two documents to fix an import.** **A package marker does the same job with no path changing.** **Why not `consider_namespace_packages`**: **that is a pytest 8+ ini setting, and this repository has no pytest configuration at all** (no `pytest.ini`, no `[tool.pytest]`, only `tests/conftest.py`). **Two empty files are smaller than introducing one.** **What I have not run**: **the whole suite after this change.** **I am running it now and will report what it finds - which is the point of making it collectable: nobody knows what 19,086 tests say together, because nobody could ask.** **AI-assisted:** yes - DeepSeek v4.1 (flash), which ran the suite and read the error it had been ignoring. Written with an AI assistant.
Neutron-0 commented 2026-12-01 12:07:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Neutron-0 on 2026-12-01T12:07:31Z.


Verified on Windows 11, and the control bites: without the two __init__.py the whole suite cannot be collected at all.

origin/main bf30e2585, Windows 11, Python 3.13.5:

python -m pytest tests/ --co -q

  without them:   exit 2   19074 tests collected, 1 error
      ERROR collecting tests/test_address_guard.py
      import file mismatch:
      imported module 'test_address_guard' has this __file__ attribute:
        ...\tests\semantic\test_address_guard.py
      which is not the same as the test file we want to collect:
        ...\tests\test_address_guard.py
      HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

  with them:      exit 0   19081 tests collected

The seven tests that appear are exactly the ones in tests/semantic/test_address_guard.py - the file that could not be collected at all before - and nothing else changes: the count goes up by seven (the file's seven cases, as the pull request says) and the error is gone.

My counts are seven lower than the pull request's on both sides, because main has gained test files since that measurement; the difference is the same seven tests either way, and the control's error is the one the pull request quotes.

Two empty files, and the whole Python suite becomes collectable in one run - which is what makes "run everything" possible at all.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310684376 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7310684376). Originally posted by [Neutron-0](https://github.com/Neutron-0) on 2026-12-01T12:07:31Z. --- **Verified on Windows 11, and the control bites: without the two `__init__.py` the whole suite cannot be collected at all.** `origin/main` `bf30e2585`, Windows 11, Python 3.13.5: ``` python -m pytest tests/ --co -q without them: exit 2 19074 tests collected, 1 error ERROR collecting tests/test_address_guard.py import file mismatch: imported module 'test_address_guard' has this __file__ attribute: ...\tests\semantic\test_address_guard.py which is not the same as the test file we want to collect: ...\tests\test_address_guard.py HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules with them: exit 0 19081 tests collected ``` The seven tests that appear are exactly the ones in `tests/semantic/test_address_guard.py` - the file that could not be collected at all before - and nothing else changes: the count goes up by seven (the file's seven cases, as the pull request says) and the error is gone. My counts are seven lower than the pull request's on both sides, because `main` has gained test files since that measurement; the difference is the same seven tests either way, and the control's error is the one the pull request quotes. Two empty files, and the whole Python suite becomes collectable in one run - which is what makes "run everything" possible at all.
merzleckeier commented 2026-12-01 12:17:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T12:17:07Z.


Independent Linux reproduction of 38e892071 on c60ce461a with Python 3.14.10 and the repository’s pinned pytest 9.2.0. pytest tests/ --collect-only -q returned exit 2 with 19,183 collected and the test_address_guard import mismatch. With the PR it returned exit 0 with 19,190 collected. Running both affected files together passed 19 tests and 21 subtests.

I tested each package marker independently in a separate worktree. Either one alone gives the same complete list of pytest node IDs as both markers on this base. These results cover pytest collection and the two files named above.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310914013 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7310914013). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T12:17:07Z. --- Independent Linux reproduction of `38e892071` on `c60ce461a` with Python 3.14.10 and the repository’s pinned pytest 9.2.0. `pytest tests/ --collect-only -q` returned exit 2 with 19,183 collected and the `test_address_guard` import mismatch. With the PR it returned exit 0 with 19,190 collected. Running both affected files together passed 19 tests and 21 subtests. I tested each package marker independently in a separate worktree. Either one alone gives the same complete list of pytest node IDs as both markers on this base. These results cover pytest collection and the two files named above. AI-assisted with OpenAI Codex.
KelboLive commented 2026-12-01 12:53:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T12:53:46Z.

Review: COMMENTED


Confirmed the premise, but the fix is one file too many. Controlled A/B on the same tree (origin/main 6c7f6b60c): baseline pytest tests/ --collect-only -q = 19184 with 1 error and exit 2; adding both files = 19191, exit 0. tests/semantic/__init__.py alone gives the same 19186/19086 result on this head with exit 0 — and the only delta against baseline is +7 from tests/test_address_guard.py, which was previously uncollectable. No test that used to be skipped becomes collected.

tests/__init__.py adds nothing but side effects, and one of them is a regression:

  1. It drops tests/ from sys.path, so 19 of 35 test files can no longer run alone. I ran each individually before and after: 19 go from exit 0 to exit 2, e.g. pytest tests/test_translate.py → ModuleNotFoundError: No module named 'conftest' (741 tests), and the same for listing, spirv_interp, winbatch, spirv_mini_interp. CONTRIBUTING.md, AGENTS.md and docs/testing.md all tell contributors to run python -m pytest tests/test_<name>.py, and docs/testing.md:740 names test_wave64_halves_fixtures.py by name.
  2. The green whole-directory run is order luck. It works only because 17 modules do sys.path.insert(0, ROOT/"tests") at import time and test_anim_index_rigs_write.py happens to be imported before any test_t* file. Proof: pytest tests/test_translate.py tests/test_anim_index_rigs_write.py → 1 test + 1 error; reversed → 734 collected. Any subset or reordering fails.
  3. conftest.py is imported twice — sys.modules holds both conftest (via the incidental path insert) and tests.conftest (pytest's plugin) — so module-level code runs twice (the llvm-mc --version probe, _repair_stdin_handle) while fixtures come from one copy and Shader/requires_tools/HAVE_SPIRV from the other. Harmless today because nothing mutable lives there; fragile the moment it does.

Please drop tests/__init__.py and keep only tests/semantic/__init__.py. I re-checked that shape: all 35 individual runs match baseline exactly, pytest tests/semantic/ is unchanged, conftest is imported once, and the test_address_guard collision stays fixed.

One loose end for the thread: python -m unittest discover -s tests still dies on the same duplicate basename (tests/test_address_guard.py vs tests/semantic/test_address_guard.py) before and after this change, so the collision is not fully closed by __init__.py alone — renaming one of the two would be the durable fix.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6131641444 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#pullrequestreview-6131641444). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T12:53:46Z. **Review:** COMMENTED --- Confirmed the premise, but the fix is one file too many. Controlled A/B on the same tree (`origin/main` `6c7f6b60c`): baseline `pytest tests/ --collect-only -q` = 19184 with 1 error and exit 2; adding both files = 19191, exit 0. **`tests/semantic/__init__.py` alone gives the same 19186/19086 result on this head with exit 0** — and the only delta against baseline is +7 from `tests/test_address_guard.py`, which was previously uncollectable. No test that used to be skipped becomes collected. `tests/__init__.py` adds nothing but side effects, and one of them is a regression: 1. **It drops `tests/` from `sys.path`, so 19 of 35 test files can no longer run alone.** I ran each individually before and after: 19 go from exit 0 to exit 2, e.g. `pytest tests/test_translate.py` → `ModuleNotFoundError: No module named 'conftest'` (741 tests), and the same for `listing`, `spirv_interp`, `winbatch`, `spirv_mini_interp`. `CONTRIBUTING.md`, `AGENTS.md` and `docs/testing.md` all tell contributors to run `python -m pytest tests/test_<name>.py`, and `docs/testing.md:740` names `test_wave64_halves_fixtures.py` by name. 2. **The green whole-directory run is order luck.** It works only because 17 modules do `sys.path.insert(0, ROOT/"tests")` at import time and `test_anim_index_rigs_write.py` happens to be imported before any `test_t*` file. Proof: `pytest tests/test_translate.py tests/test_anim_index_rigs_write.py` → 1 test + 1 error; reversed → 734 collected. Any subset or reordering fails. 3. **`conftest.py` is imported twice** — `sys.modules` holds both `conftest` (via the incidental path insert) and `tests.conftest` (pytest's plugin) — so module-level code runs twice (the `llvm-mc --version` probe, `_repair_stdin_handle`) while fixtures come from one copy and `Shader`/`requires_tools`/`HAVE_SPIRV` from the other. Harmless today because nothing mutable lives there; fragile the moment it does. **Please drop `tests/__init__.py` and keep only `tests/semantic/__init__.py`.** I re-checked that shape: all 35 individual runs match baseline exactly, `pytest tests/semantic/` is unchanged, `conftest` is imported once, and the `test_address_guard` collision stays fixed. One loose end for the thread: `python -m unittest discover -s tests` still dies on the same duplicate basename (`tests/test_address_guard.py` vs `tests/semantic/test_address_guard.py`) before and after this change, so the collision is not fully closed by `__init__.py` alone — renaming one of the two would be the durable fix.
fiestorra commented 2026-12-01 14:03:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T14:03:16Z.


The first version of this was wrong and the CI said so, which is what it is for. Reworked to a rename, and this is why.

What I pushed first: tests/__init__.py and tests/semantic/__init__.py.** It does make the two test_address_guard modules distinct - and it makes tests/ the tests package, after which a test that imports a module beside it cannot find it:

ModuleNotFoundError: No module named 'listing'
ERROR tests/test_cube_sample.py
Interrupted: 1 error during collection

tests/test_cube_sample.py does import listing, and tests/listing.py is resolved by tests/ being on sys.path as a plain directory. A package marker takes that away. The fix had traded one collection error for another, and linux-python-and-viewer caught it in five seconds.

What it is now: tests/semantic/test_address_guard.py renamed to test_address_guard_semantic.py. The directories stay plain, each keeps its own sys.path entry, no import changes anywhere, and the two documents that cite the file follow it (docs/d3d12_vulkan.md, docs/design.md).

Measured after the rework:

pytest tests/ --co -q                                   19086 collected, exit 0
pytest tests/semantic/test_address_guard_semantic.py     12 passed, 19 subtests
pytest tests/test_address_guard.py                        7 passed, 2 subtests

And the two files still say what they say: the root one is the parity of tools/address_guard.py with runtime/src/address_guard.h, the semantic one is rdna2spirv.py --address-guard - different subjects that happened to share a name, which is the whole reason pytest picked one key for both.

The cost of the rename, for the record: one file path changes, and a git log --follow finds its history. That is cheaper than a package marker that changes how 19,000 tests import each other.

AI-assisted: yes - DeepSeek v4.1 (flash), whose first attempt the Linux job rejected and whose second attempt it should not.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7313618670 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7313618670). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T14:03:16Z. --- **The first version of this was wrong and the CI said so, which is what it is for. Reworked to a rename, and this is why.** **What I pushed first**: `tests/__init__.py` and `tests/semantic/__init__.py`.** **It does make the two `test_address_guard` modules distinct** - **and it makes `tests/` the `tests` package, after which a test that imports a module *beside* it cannot find it:** ``` ModuleNotFoundError: No module named 'listing' ERROR tests/test_cube_sample.py Interrupted: 1 error during collection ``` **`tests/test_cube_sample.py` does `import listing`, and `tests/listing.py` is resolved by `tests/` being on `sys.path` as a plain directory.** **A package marker takes that away.** **The fix had traded one collection error for another, and `linux-python-and-viewer` caught it in five seconds.** **What it is now**: **`tests/semantic/test_address_guard.py` renamed to `test_address_guard_semantic.py`.** **The directories stay plain, each keeps its own `sys.path` entry, no import changes anywhere, and the two documents that cite the file follow it** (`docs/d3d12_vulkan.md`, `docs/design.md`). **Measured after the rework:** ``` pytest tests/ --co -q 19086 collected, exit 0 pytest tests/semantic/test_address_guard_semantic.py 12 passed, 19 subtests pytest tests/test_address_guard.py 7 passed, 2 subtests ``` **And the two files still say what they say**: **the root one is the parity of `tools/address_guard.py` with `runtime/src/address_guard.h`, the semantic one is `rdna2spirv.py --address-guard`** - **different subjects that happened to share a name, which is the whole reason pytest picked one key for both.** **The cost of the rename, for the record**: **one file path changes, and a `git log --follow` finds its history.** **That is cheaper than a package marker that changes how 19,000 tests import each other.** **AI-assisted:** yes - DeepSeek v4.1 (flash), whose first attempt the Linux job rejected and whose second attempt it should not. Written with an AI assistant.
KelboLive commented 2026-12-01 14:05:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T14:05:05Z.


Re-checked at the current head (38e892071, unchanged since the review): both tests/__init__.py and tests/semantic/__init__.py are still there, and the regression is still present.

Four of the five files I named still fail when run alone:

tests/test_translate.py             exit 2  ModuleNotFoundError: No module named 'conftest'
tests/test_cube_sample.py           exit 2  ModuleNotFoundError: No module named 'listing'
tests/test_values.py                exit 2  ModuleNotFoundError: No module named 'spirv_interp'
tests/test_wave64_halves_fixtures.py exit 2 ModuleNotFoundError: No module named 'conftest'
tests/test_anim_index_rigs_write.py exit 0  1 passed

That is the command CONTRIBUTING.md, AGENTS.md and docs/testing.md tell contributors to use, and docs/testing.md:740 names test_wave64_halves_fixtures.py by name.

The counterfactual is measured, not argued: at the same head, removing only tests/__init__.py and keeping tests/semantic/__init__.py gives

  • python -m pytest tests/ --collect-only -q → exit 0, 19086 collected (unchanged),
  • and all five files pass alone — 733 + 18 + 59 + 10 + 1 = 821 passed, 0 failed.

So the semantic __init__.py is the part that fixes the test_address_guard collision; the top-level one only costs the ability to run a single file. Please drop tests/__init__.py from this PR.

(Independent of this PR: tests/test_address_guard.py and tests/semantic/test_address_guard.py still collide for unittest discover; renaming the top-level one to test_address_guard_oracle.py fixes that with zero reference updates, and I have that prepared separately.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7313667170 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7313667170). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T14:05:05Z. --- Re-checked at the current head (`38e892071`, unchanged since the review): **both `tests/__init__.py` and `tests/semantic/__init__.py` are still there, and the regression is still present.** Four of the five files I named still fail when run alone: ``` tests/test_translate.py exit 2 ModuleNotFoundError: No module named 'conftest' tests/test_cube_sample.py exit 2 ModuleNotFoundError: No module named 'listing' tests/test_values.py exit 2 ModuleNotFoundError: No module named 'spirv_interp' tests/test_wave64_halves_fixtures.py exit 2 ModuleNotFoundError: No module named 'conftest' tests/test_anim_index_rigs_write.py exit 0 1 passed ``` That is the command `CONTRIBUTING.md`, `AGENTS.md` and `docs/testing.md` tell contributors to use, and `docs/testing.md:740` names `test_wave64_halves_fixtures.py` by name. The counterfactual is measured, not argued: at the same head, removing **only** `tests/__init__.py` and keeping `tests/semantic/__init__.py` gives - `python -m pytest tests/ --collect-only -q` → **exit 0, 19086 collected** (unchanged), - and all five files pass alone — 733 + 18 + 59 + 10 + 1 = **821 passed, 0 failed**. So the semantic `__init__.py` is the part that fixes the `test_address_guard` collision; the top-level one only costs the ability to run a single file. Please drop `tests/__init__.py` from this PR. (Independent of this PR: `tests/test_address_guard.py` and `tests/semantic/test_address_guard.py` still collide for `unittest discover`; renaming the top-level one to `test_address_guard_oracle.py` fixes that with zero reference updates, and I have that prepared separately.)
aegish-zagi commented 2026-12-01 14:33:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-12-01T14:33:58Z.


Verification — VERIFY-2869

Verdict: PASS

  • PR: #2869 | head sha: 3c4fc452c4547e87f1791e2006bc11e654ad8982 | merge state vs main: clean merge with current main cd0c52fcf in a scratch worktree (only docs/design.md auto-merged, no conflicts)
  • Diff audited: pure rename tests/semantic/test_address_guard.py -> tests/semantic/test_address_guard_semantic.py (100% similarity, no content change) plus the two doc references updated to the new path (docs/d3d12_vulkan.md, docs/design.md address-guard row). No production code.
  • Tests run (Linux, Python 3.12.3, python -I -m unittest discover):
    • PR (merged): test_address_guard_semantic.py — 12 tests OK; tests/test_docs_repo_paths.py — 5 tests OK
    • Main: test_address_guard.py (old name) — 12 tests OK. No red/green pair, as expected for a rename: the same suite passes under both names, and the docs-path test confirms the updated references resolve.
  • Note: the PR title mentions __init__.py files, but the diff at this head contains no __init__.py — it is the rename + docs slice only. Judged on the diff as it stands.

AI-assisted: yes (Muse Wonder, Muse by Meta)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314467941 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7314467941). Originally posted by [aegish-zagi](https://github.com/aegish-zagi) on 2026-12-01T14:33:58Z. --- ## Verification — VERIFY-2869 **Verdict: PASS** - PR: #2869 | head sha: `3c4fc452c4547e87f1791e2006bc11e654ad8982` | merge state vs main: clean merge with current main `cd0c52fcf` in a scratch worktree (only docs/design.md auto-merged, no conflicts) - Diff audited: pure rename `tests/semantic/test_address_guard.py` -> `tests/semantic/test_address_guard_semantic.py` (100% similarity, no content change) plus the two doc references updated to the new path (docs/d3d12_vulkan.md, docs/design.md address-guard row). No production code. - Tests run (Linux, Python 3.12.3, `python -I -m unittest discover`): - PR (merged): test_address_guard_semantic.py — 12 tests OK; tests/test_docs_repo_paths.py — 5 tests OK - Main: test_address_guard.py (old name) — 12 tests OK. No red/green pair, as expected for a rename: the same suite passes under both names, and the docs-path test confirms the updated references resolve. - Note: the PR title mentions `__init__.py` files, but the diff at this head contains no `__init__.py` — it is the rename + docs slice only. Judged on the diff as it stands. AI-assisted: yes (Muse Wonder, Muse by Meta)
merzleckeier commented 2026-12-01 14:37:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T14:37:04Z.


I verified the renamed-file revision 3c4fc452 on cd0c52fcf with Python 3.14.10 and the repository's pytest 9.2.0. pytest tests/ --collect-only -q returned 2 on main (19,211 collected and the test_address_guard import mismatch) and 0 with this revision (19,218 collected, no import error). The changed tree renames the semantic file and does not add either package marker.

The five files mentioned in the review each also passed as a separate python -m pytest invocation: translate 741, cube sample 18, values 59, wave64 fixtures 10, and anim-index 1. Running the two address-guard files together gave 19 tests and 21 subtests passed. The full-suite check here was collection, plus these targeted executions. MEASURED, AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314549850 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7314549850). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T14:37:04Z. --- I verified the renamed-file revision `3c4fc452` on `cd0c52fcf` with Python 3.14.10 and the repository's pytest 9.2.0. `pytest tests/ --collect-only -q` returned 2 on main (19,211 collected and the `test_address_guard` import mismatch) and 0 with this revision (19,218 collected, no import error). The changed tree renames the semantic file and does not add either package marker. The five files mentioned in the review each also passed as a separate `python -m pytest` invocation: translate 741, cube sample 18, values 59, wave64 fixtures 10, and anim-index 1. Running the two address-guard files together gave 19 tests and 21 subtests passed. The full-suite check here was collection, plus these targeted executions. MEASURED, AI-assisted (Codex).
aslan2142 commented 2026-12-02 01:21:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-02T01:21:25Z.


Closing in favor of #2903 (merged in 825f09d99), which resolves the same test_address_guard.py basename collision for both pytest and unittest discover by renaming the top-level tests/test_address_guard.py -> tests/test_address_guard_oracle.py without requiring doc or runtime/src/address_guard.h reference updates. Thanks for diagnosing the issue and opening this PR!

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7331604593 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2869#issuecomment-7331604593). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-02T01:21:25Z. --- Closing in favor of #2903 (merged in `825f09d99`), which resolves the same `test_address_guard.py` basename collision for both `pytest` and `unittest discover` by renaming the top-level `tests/test_address_guard.py` -> `tests/test_address_guard_oracle.py` without requiring doc or `runtime/src/address_guard.h` reference updates. Thanks for diagnosing the issue and opening this PR!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2869
No description provided.