这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@DealsBeam
Copy link

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.

**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.
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