-
-
Notifications
You must be signed in to change notification settings - Fork 32k
C API tests: use special markers to test that output parameters were set #109014
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
C API tests: use special markers to test that output parameters were set #109014
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I just propose a less common value for UNINITIALIZED_INT and UNINITIALIZED_SIZE.
I used random.randint(0, 2**30)
to generate the two numbers that I proposed.
Co-authored-by: Victor Stinner <vstinner@python.org>
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…s were set (pythonGH-109014). (cherry picked from commit bf414b7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-109023 is a backport of this pull request to the 3.12 branch. |
This change introduced compiler warnings on FreeBSD (clang -O2):
I'm not sure if I copied correctly all warnings. build: https://cirrus-ci.com/task/5026392602050560?logs=build#L79 |
Extended extraction from #108797. It will be backported, unlike to the main part of #108797.