openage
openage copied to clipboard
Fixes a bug in the doctest runner where error messages were suppressed.
Bug Report
- File:
openage/testing/doctest.py - Line: 20
- Description: The
testmodfunction was called withreport=False, which suppresses detailed output of doctest failures. This makes it difficult to debug failing doctests, as the only output is a genericTestError. - Fix: Removed the
report=Falseargument from thetestmodcall to enable detailed reporting of doctest failures.
Verification
- Created a new doctest that was designed to fail.
- Ran the tests and confirmed that the error message was generic.
- Applied the fix.
- Ran the tests again and confirmed that the error message was detailed and specific.
- Removed the failing doctest.
- Ran the tests one last time to ensure everything passed.