| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| } | ||
| // (capsule == NULL) {is handled by PyModule_Add | ||
| if (PyModule_Add(module, "datetime_CAPI", capsule) < 0) { | ||
| PyMem_Free(capi); |
There was a problem hiding this comment.
It's not correct to free capi here?
Sorry, something went wrong.
There was a problem hiding this comment.
capi is static, we should not free it.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| PyMem_Free(capi); | ||
| goto error; | ||
| } | ||
| // (capsule == NULL) {is handled by PyModule_Add |
There was a problem hiding this comment.
typo:
// (capsule == NULL) is handled by PyModule_Add.
Sorry, something went wrong.
|
I'll take care of backporting this to 3.13 (by adding it into gh-119641). |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 FreeBSD 3.x has failed when building commit a89fc26. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/1223/builds/3218 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd/build/Lib/test/test_ssl.py", line 2225, in test_get_server_certificate_ipv6
_test_get_server_certificate(self, 'ipv6.google.com', 443)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd/build/Lib/test/test_ssl.py", line 2230, in _test_get_server_certificate
pem = ssl.get_server_certificate((host, port))
File "/buildbot/buildarea/3.x.ware-freebsd/build/Lib/ssl.py", line 1514, in get_server_certificate
with create_connection(addr, timeout=timeout) as sock:
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd/build/Lib/socket.py", line 828, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd/build/Lib/socket.py", line 963, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 1] Address family for hostname not supported
|
Sorry, something went wrong.
…don't free it (pythonGH-119662) - While datetime uses global state, only initialize it once. - While `capi` is static, don't free it (thanks @neonene in https://github.com/python/cpython/pull/119641/files#r1616710048)
|
Thanks! |
Sorry, something went wrong.
…don't free it (pythonGH-119662) - While datetime uses global state, only initialize it once. - While `capi` is static, don't free it (thanks @neonene in https://github.com/python/cpython/pull/119641/files#r1616710048)
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.