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

test_importlib fails when _testcapi is a builtin module #94217

Closed
Assignees
brettcannon
Labels
3.11only security fixes3.12only security fixestopic-importlibtype-bugAn unexpected behavior, bug, or error
@tiran

Description

@tiran

Bug report

Some test_importlib cases for extension modules are failing when Python is compiled with dynamic extension support but_testcapi or_testmultiphase are builtin modules:

======================================================================FAIL: test_module (test.test_importlib.extension.test_finder.Frozen_FinderTests.test_module)----------------------------------------------------------------------Traceback (most recent call last):  File "/python-wasm/cpython/Lib/test/test_importlib/extension/test_finder.py", line 25, in test_module    self.assertTrue(self.find_spec(util.EXTENSIONS.name))    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: None is not true

The tests should be skipped if the module name is insys.builtin_module_names.

Metadata

Metadata

Assignees

Labels

3.11only security fixes3.12only security fixestopic-importlibtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp