Skip to content

Conversation

@encukou
Copy link
Member

@encukou encukou commented Sep 9, 2019

Add functions with various calling conventions to _testcapi, expose them as module-level functions, bound methods, class methods, and static methods, and test calling them and introspecting them through GDB.

https://bugs.python.org/issue37499

Co-authored-by: Jeroen Demeyer [email protected]
Automerge-Triggered-By: @pganssle

@encukou
Copy link
Member Author

encukou commented Sep 9, 2019

I started this on a train, and never got to finishing it up. Unfortunately it duplicates work in GH-14795.

@encukou encukou added skip news tests Tests in the Lib/test dir labels Sep 9, 2019
@encukou encukou requested review from pganssle and removed request for pablogsal September 9, 2019 14:17
@bedevere-bot
Copy link

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@encukou
Copy link
Member Author

encukou commented Sep 9, 2019

I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@pganssle: please review the changes made to this pull request.

@encukou
Copy link
Member Author

encukou commented Sep 9, 2019

The Function "meth_noargs" not defined. warnings on stderr aren't easy to get rid of (without masking other warnings by redirecting stderr): See the comment in get_stack_trace

Copy link
Member

@pganssle pganssle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, I think we can go ahead and merge.

@encukou Let me know if you have any problems with the changes I pushed in d8a28ab.

Also, I had to rebase this against master to resolve a merge conflict, so you'll need to do a force pull or something equivalent if you want to push more commits.

@miss-islington
Copy link
Contributor

@encukou: Status check is done, and it's a failure ❌ .

1 similar comment
@miss-islington
Copy link
Contributor

@encukou: Status check is done, and it's a failure ❌ .

@miss-islington
Copy link
Contributor

@encukou: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit f958377 into python:master Sep 10, 2019
@encukou encukou deleted the meth-test branch September 10, 2019 12:35
encukou added a commit to ZackerySpytz/cpython that referenced this pull request Sep 10, 2019
Since pythonGH-15776, the test no longer uses time_gmtime
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Add functions with various calling conventions to `_testcapi`, expose them as module-level functions, bound methods, class methods, and static methods, and test calling them and introspecting them through GDB.


https://bugs.python.org/issue37499


Co-authored-by: Jeroen Demeyer <[email protected]>
Automerge-Triggered-By: @pganssle
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.

6 participants