| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests.
Sorry, something went wrong.
|
Importing asyncio package works if test_capi.test_import is run alone, but fails with the following error when test_capi is run: ERROR: test_importmodule (test.test_capi.test_import.ImportTests.test_importmodule) (name='asyncio')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_capi/test_import.py", line 42, in check_import_fresh_module
module = import_module(name)
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/asyncio/__init__.py", line 25, in <module>
__all__ = (base_events.__all__ +
^^^^^^^^^^^
NameError: name 'base_events' is not defined
For now, I modified the tests to not import asyncio. |
Sorry, something went wrong.
|
I will merge my PR as it is when the CI passed, to be able to add tests in my following #128912 PR. I didn't add tests for non-UTF8 strings, nor NULL tests for PyImport_ImportModuleLevel(). For PyImport_ImportModuleLevel(), it's tricky because some arguments are ignored for level=0 and I don't know how to write tests for level > 0. @serhiy-storchaka: Maybe you would be interested to work on follow-up PR to increase the test coverage / test more cases? |
Sorry, something went wrong.
There was a problem hiding this comment.
Do you allow me to commit directly in your branch? It is better to have a single clean commit in the logs than several commits that rewrite one other.
Sorry, something went wrong.
|
@serhiy-storchaka: Ok, you can push changes to my branch. |
Sorry, something went wrong.
|
I pushed my changes. Please review them. It seems that I found bugs in the current code:
|
Sorry, something went wrong.
I pushed a cleanup changes. With this cleanup, the change (additional tests) LGTM.
Oh, interesting. |
Sorry, something went wrong.
|
@serhiy-storchaka: Thanks for additional tests and reviews. I enabled auto-merge. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker d95ba9fa1110534b7247fa2ff12b90e930c93256 3.13 |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker d95ba9fa1110534b7247fa2ff12b90e930c93256 3.12 |
Sorry, something went wrong.
* Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit d95ba9f)
|
GH-128960 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
* Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit d95ba9f)
gh-128911: Add tests on the PyImport C API (#128915) * Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit d95ba9f)
…nGH-128915) (pythonGH-128960) pythongh-128911: Add tests on the PyImport C API (pythonGH-128915) * Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. (cherry picked from commit 34ded1a) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit d95ba9f)
) (#128989) * Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. (cherry picked from commit 34ded1a) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit d95ba9f)
* Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
| 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.