Skip to content

Conversation

@skirpichev
Copy link
Member

@skirpichevskirpichev 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).

skirpichevand 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-storchakaserhiy-storchaka added tests Tests in the Lib/test dir skip news needs backport to 3.12 only security fixes labels Nov 27, 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

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

@bedevere-appbedevere-appbot removed the needs backport to 3.12 only security fixes label Nov 28, 2023
@serhiy-storchaka
Copy link
Member

Thank you for your contribution @skirpichev.

@skirpichevskirpichev 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@skirpichev@serhiy-storchaka