openage icon indicating copy to clipboard operation
openage copied to clipboard

Fixes a bug in the doctest runner where error messages were suppressed.

Open DealsBeam opened this issue 2 months ago • 0 comments

Bug Report

  • File: openage/testing/doctest.py
  • Line: 20
  • Description: The testmod function was called with report=False, which suppresses detailed output of doctest failures. This makes it difficult to debug failing doctests, as the only output is a generic TestError.
  • Fix: Removed the report=False argument from the testmod call to enable detailed reporting of doctest failures.

Verification

  1. Created a new doctest that was designed to fail.
  2. Ran the tests and confirmed that the error message was generic.
  3. Applied the fix.
  4. Ran the tests again and confirmed that the error message was detailed and specific.
  5. Removed the failing doctest.
  6. Ran the tests one last time to ensure everything passed.

DealsBeam avatar Oct 30 '25 19:10 DealsBeam