Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-37499: Test various C calling conventions#15776

Merged
miss-islington merged 11 commits into
python:masterpython/cpython:masterfrom
encukou:meth-testencukou/cpython:meth-testCopy head branch name to clipboard
Sep 10, 2019
Merged

bpo-37499: Test various C calling conventions#15776
miss-islington merged 11 commits into
python:masterpython/cpython:masterfrom
encukou:meth-testencukou/cpython:meth-testCopy head branch name to clipboard

Conversation

@encukou

@encukou encukou commented Sep 9, 2019

Copy link
Copy Markdown
Member

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 J.Demeyer@UGent.be
Automerge-Triggered-By: @pganssle

@encukou

encukou commented Sep 9, 2019

Copy link
Copy Markdown
Member Author

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
Comment thread Lib/test/test_call.py Outdated
Comment thread Lib/test/test_call.py Outdated
@bedevere-bot

Copy link
Copy Markdown

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

@encukou

encukou commented Sep 9, 2019

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again.

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

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

@encukou

encukou commented Sep 9, 2019

Copy link
Copy Markdown
Member Author

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

@pganssle pganssle left a comment

Copy link
Copy Markdown
Member

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.

Comment thread Lib/test/test_gdb.py Outdated
@miss-islington

Copy link
Copy Markdown
Contributor

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

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor

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

@miss-islington

Copy link
Copy Markdown
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 <J.Demeyer@UGent.be>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.