Skip to content

More tests for complexobject.c #109802

@skirpichev

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

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-featureA feature request or enhancement
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions