This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.8, Python 3.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Mariatta, Michael.Felt, miss-islington
Priority: normal Keywords: patch

Created on 2018-08-31 19:24 by Michael.Felt, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 9017 merged Michael.Felt, 2018-08-31 19:34
PR 9023 merged miss-islington, 2018-09-01 02:31
Messages (4)
msg324441 - (view) Author: Michael Felt (Michael.Felt) * Date: 2018-08-31 19:24
With AIX I have seen the following messages repeatedly:

root@x066:[/data/prj/python/python3-3.8]./python ../git/*Lib/ctypes/test/
/data/prj/python/git/python3-3.8/Lib/ ResourceWarning: subprocess 11796734 is still running
  ResourceWarning, source=self)
/data/prj/python/git/python3-3.8/Lib/ ResourceWarning: subprocess 11796480 is still running
  ResourceWarning, source=self)

There is python2 to python3 missed change typo that is preventing the returncode from ever being determined

diff --git a/Lib/ctypes/ b/Lib/ctypes/
index 463f60a284..190cac6507 100644
--- a/Lib/ctypes/
+++ b/Lib/ctypes/
@@ -115,7 +115,7 @@ def get_ld_headers(file):
-    p.wait
+    p.wait()
     return ldr_headers

 def get_shared(ld_headers):

PR will be posted.
msg324457 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2018-09-01 02:31
New changeset 172a71f19bb5e9624651850b315f403c460b9699 by Mariatta (Michael Felt) in branch 'master':
bpo-34558: Add missing parentheses in (GH-9017)
msg324458 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2018-09-01 02:36
msg324459 - (view) Author: miss-islington (miss-islington) Date: 2018-09-01 02:46
New changeset 89c9043ee09d89c99f70e61d8fc0ba45e255b055 by Miss Islington (bot) in branch '3.7':
bpo-34558: Add missing parentheses in (GH-9017)
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78739
2018-09-01 02:46:36miss-islingtonsetnosy: + miss-islington
messages: + msg324459
2018-09-01 02:36:46Mariattasetstatus: open -> closed
resolution: fixed
messages: + msg324458

stage: patch review -> resolved
2018-09-01 02:31:40miss-islingtonsetpull_requests: + pull_request8491
2018-09-01 02:31:11Mariattasetnosy: + Mariatta
messages: + msg324457
2018-08-31 19:34:18Michael.Feltsetkeywords: + patch
stage: patch review
pull_requests: + pull_request8485
2018-08-31 19:24:42Michael.Feltcreate