[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-36940 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-25 Thread STINNER Victor
STINNER Victor added the comment: commit eaede0ded72e67cee4a91c086847d54cb64ca74c Author: Victor Stinner Date: Mon May 17 23:48:35 2021 +0200 bpo-44131: Test Py_FrozenMain() (GH-26126) * Add test_frozenmain to test_embed * Add Programs/test_frozenmain.py * Add Programs/

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 68b9c20a98887bf0a92698f8df9f28b9440970dc by Miss Islington (bot) in branch '3.10': bpo-43795: Remove Py_FrozenMain from the Limited API & Stable ABI (GH-26241) (GH-26353) https://github.com/python/cpython/commit/68b9c20a98887bf0a92698f8

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24945 pull_request: https://github.com/python/cpython/pull/26353 ___ Python tracker _

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-19 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24858 pull_request: https://github.com/python/cpython/pull/26241 ___ Python tracker ___ ___

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-18 Thread STINNER Victor
STINNER Victor added the comment: > The tests are now skipped on Windows. It might be better to use a feature > check: hasattr(ctypes.pythonapi, 'Py_FrozenMain') On Unix, _testembed gets the symbol since it's used. Currently, hasattr(ctypes.pythonapi, 'Py_FrozenMain') returns false if Python

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-18 Thread Petr Viktorin
Petr Viktorin added the comment: The tests are now skipped on Windows. It might be better to use a feature check: hasattr(ctypes.pythonapi, 'Py_FrozenMain') IMO, Py_FrozenMain is quite specific: it's OK if it's exported, but also OK if it's missing. (Unless you're compiling a special build

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24820 pull_request: https://github.com/python/cpython/pull/26203 ___ Python tracker ___ __

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
STINNER Victor added the comment: Compilation failed on s390x RHEL7 LTO + PGO 3.x buildbot: https://buildbot.python.org/all/#/builders/244/builds/208 (...) rm -f libpython3.11.a ar rcs libpython3.11.a Modules/getbuildinfo.o (...) Python/frozen.o lto1: error: libpython3.11.a: file too short (nu

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24818 pull_request: https://github.com/python/cpython/pull/26201 ___ Python tracker ___ __

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
STINNER Victor added the comment: commit eaede0ded72e67cee4a91c086847d54cb64ca74c Author: Victor Stinner Date: Mon May 17 23:48:35 2021 +0200 bpo-44131: Test Py_FrozenMain() (GH-26126) * Add test_frozenmain to test_embed * Add Programs/test_frozenmain.py * Add Programs/

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24766 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26126 ___ Python tracker ___ _

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-14 Thread STINNER Victor
New submission from STINNER Victor : I would like to change Py_FrozenMain() using the new PyConfig C API, but I would prefer to first write tests of its current behavior. Currently, Py_FrozenMain() has no test. Py_FrozenMain() is used by Tools/freeze/freeze.py. Old freeze.py issues: * bpo-42