Skip to content

More tests for complexobject.c #109802

Description

@skirpichev

Right now ./python -m test test_complex test_cmath only partially cover implementation of the complex object. Some code/branches are just inaccessible (e.g. L135-136 or mask <= 0 on L166; line numbers are wrt to 54fbfa8). There are only indirect tests for C-API functions (e.g. PyComplex_RealAsDouble, PyComplex_ImagAsDouble).

Linked PRs

Activity

  1. added a commit that references this issue on Sep 24, 2023
  2. added a commit that references this issue on Nov 28, 2023
  3. added a commit that references this issue on Nov 28, 2023
  4. added a commit that references this issue on Nov 28, 2023
  5. added a commit that references this issue on Feb 11, 2024
  6. added a commit that references this issue on Apr 2, 2024
  7. added a commit that references this issue on Apr 4, 2024
  8. added a commit that references this issue on Apr 17, 2024
  9. added a commit that references this issue on Sep 2, 2024
  10. self-assigned this
    on Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions