Skip to content

build-tantivy: drop the doctest-modules test pass - #1651

Open
luhenry wants to merge 1 commit into
mainfrom
tantivy-fix-tests
Open

build-tantivy: drop the doctest-modules test pass#1651
luhenry wants to merge 1 commit into
mainfrom
tantivy-fix-tests

Conversation

@luhenry

@luhenry luhenry commented Sep 8, 2026

Copy link
Copy Markdown
Member

Follow-up to #1639, merged before its cp312/cp313/cp314/cp314t CI legs had finished. All four failed on the same second test step: python -m pytest --pyargs tantivy --doctest-modules exits 5 (no tests ran).

Confirmed locally against the real published 0.25.1 wheel: tantivy's compiled classes report __module__ as tantivy.tantivy (the compiled submodule), not tantivy (the wrapper package from .tantivy import * re-exports them into), so pytest's doctest-modules collector finds nothing there whether invoked via --pyargs tantivy or a path-based tantivy target - matching what a bare doctest.testmod() call against the real submodule shows. This drops that dead second test step; the real suite (tests/, 154 items, including the markdown-doc doctests via mktestdocs) already covers what upstream's own CI runs and is unaffected.

Not real coverage: tantivy's compiled classes report __module__ as
tantivy.tantivy (the compiled submodule), not tantivy (the wrapper
package), so pytest's doctest-modules collector -- whether invoked via
--pyargs tantivy or a path-based tantivy target -- finds 0 items
against the installed wheel, matching a bare doctest.testmod() call
against the actual submodule (confirmed locally against the published
0.25.1 wheel). Exit code 5 (no tests ran) then fails the CIBW_TEST_COMMAND
chain. The real pytest suite (tests/, 154 items including the
markdown-doc doctests via mktestdocs) is unaffected and is the suite
upstream's own CI runs.
luhenry added a commit that referenced this pull request Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant