Skip to content

Fix doctests#105

Draft
cclauss wants to merge 1 commit into
bastibe:masterfrom
cclauss:fix-doctests
Draft

Fix doctests#105
cclauss wants to merge 1 commit into
bastibe:masterfrom
cclauss:fix-doctests

Conversation

@cclauss

@cclauss cclauss commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

DRAFT because there are 5 TODOs that I cannot fix because luarocks --local make fails on macOS.

Move doctests from a module docstring to a class docstring to make them much more reliable.

% python tests/test_lua.py # passes silently
% python -m doctest --verbose tests/test_lua.py # "27 passed."

Modify the last line of the docstring to change 3 to 33...

% python tests/test_lua.py # "26 passed and 1 failed."
% python -m doctest --verbose tests/test_lua.py # "26 passed and 1 failed."

Use # doctest: +ELLIPSIS directives only on the tests where they are needed instead of requiring the global command-line option.

Proven to pass on:

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