Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-109802: Increase test coverage for complexobject.c #112452

Merged
merged 46 commits into from
Nov 28, 2023

Conversation

skirpichev
Copy link
Member

@skirpichev skirpichev commented Nov 27, 2023

  • _Py_c_pow: L139, L135-136
  • complex_hash: L423
  • to_complex: L443, L449, L453-454
  • complex_sub: L474, L475
  • complex_mul: L485, L486
  • complex_div: L496, L497
  • complex_pow: L512, L513, L522
  • complex_pos: L555-L559
  • complex_richcompare: L616, L625
  • complex_from_string_inner: L786, L804
  • complex_new_impl: L944, L951, L958, L965
  • complex_bool: L580
  • tests for Py_c* C API

Line numbers are wrt to complexobject.c at 54fbfa8d5e.


This is #109642 without changes in complexobject.c (some dead code will be uncovered by tests in test_complex.py, test_cmath.py and test_capi/test_complex.py).

skirpichev and others added 30 commits September 24, 2023 13:06
* _Py_c_pow: L134 (this case goes to c_powi() due to L523), L139

// line numbers wrt to 54fbfa8
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* move test in test_bool()
* drop redundant test class
* test type in test_pos
* avoid removing BINARY_OP instructions at compile
  time in arithmetic tests
@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir skip news needs backport to 3.12 bug and security fixes labels Nov 27, 2023
@serhiy-storchaka serhiy-storchaka merged commit f14d741 into python:main Nov 28, 2023
@miss-islington-app
Copy link

Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 28, 2023
…-112452)

(cherry picked from commit f14d741)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Nov 28, 2023

GH-112489 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Nov 28, 2023
@serhiy-storchaka
Copy link
Member

Thank you for your contribution @skirpichev.

@skirpichev skirpichev deleted the complex-cov-tests branch November 28, 2023 08:21
serhiy-storchaka pushed a commit that referenced this pull request Nov 28, 2023
…) (GH-112489)

(cherry picked from commit f14d741)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants