Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-105922: Use PyImport_AddModuleRef() function#105999

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:add_module_ref
Jun 22, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedJun 22, 2023
edited by bedevere-bot
Loading

Replace PyImport_AddModuleObject() + Py_XNewRef() with PyImport_AddModuleRef() to get directly a strong reference.

Replace PyImport_AddModuleObject() + Py_XNewRef() withPyImport_AddModuleRef() to get directly a strong reference.
@vstinner
Copy link
MemberAuthor

test_threading failed with a warning on the Address sanitizer CI:

test_4_daemon_threads (test.test_threading.ThreadJoinOnShutdown.test_4_daemon_threads) ... oktest_clear_threads_states_after_fork (test.test_threading.ThreadJoinOnShutdown.test_clear_threads_states_after_fork) ... oktest_reinit_tls_after_fork (test.test_threading.ThreadJoinOnShutdown.test_reinit_tls_after_fork) ... Warning -- Uncaught thread exception: AssertionErrorException in thread Thread-36 (do_fork_and_wait):Traceback (most recent call last):  File "/home/runner/work/cpython/cpython/Lib/threading.py", line 1052, in _bootstrap_inner    self.run()  File "/home/runner/work/cpython/cpython/Lib/threading.py", line 989, in run    self._target(*self._args, **self._kwargs)  File "/home/runner/work/cpython/cpython/Lib/test/test_threading.py", line 1173, in do_fork_and_wait    support.wait_process(pid, exitcode=50)  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 2156, in wait_process    raise AssertionError(f"process {pid} is still running "AssertionError: process 21364 is still running after 300.3 secondsok

@vstinnervstinner merged commit193a2b2 intopython:mainJun 22, 2023
@vstinnervstinner deleted the add_module_ref branchJune 22, 2023 22:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@brettcannonbrettcannonAwaiting requested review from brettcannon

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlan

@warsawwarsawAwaiting requested review from warsaw

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@vstinner@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp