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-44133: Skip PyThread_get_thread_native_id() if not available#30636

Merged
vstinner merged 1 commit into
python:mainpython/cpython:mainfrom
vstinner:test_exportCopy head branch name to clipboard
Jan 17, 2022
Merged

bpo-44133: Skip PyThread_get_thread_native_id() if not available#30636
vstinner merged 1 commit into
python:mainpython/cpython:mainfrom
vstinner:test_exportCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jan 17, 2022

Copy link
Copy Markdown
Member

test_capi.test_export_symbols() doesn't check if Python exports the
"PyThread_get_thread_native_id" symbol if the _thread.get_native_id()
function is not available (if the PY_HAVE_THREAD_NATIVE_ID macro is
not defined).

https://bugs.python.org/issue44133

test_capi.test_export_symbols() doesn't check if Python exports the
"PyThread_get_thread_native_id" symbol if the _thread.get_native_id()
function is not available (if the PY_HAVE_THREAD_NATIVE_ID macro is
not defined).

@kulikjak kulikjak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! I tested the changes and test_capi is happy again.

@vstinner vstinner merged commit 16901c0 into python:main Jan 17, 2022
@vstinner vstinner deleted the test_export branch January 17, 2022 13:49
@vstinner

Copy link
Copy Markdown
Member Author

Thanks! I tested the changes and test_capi is happy again.

Thanks for testing my PR on Solaris.

To test my PR, I hacked Python to not define PY_HAVE_THREAD_NATIVE_ID on Linux: test fails without my PR, test pass with my PR.

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.

4 participants

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