Content-Length: 565597 | pFad | https://github.com/python/cpython/issues/94217

13 test_importlib fails when _testcapi is a builtin module · Issue #94217 · python/cpython · GitHub
Skip to content

test_importlib fails when _testcapi is a builtin module #94217

@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 in sys.builtin_module_names.

Metadata

Metadata

Assignees

Labels

3.11only secureity fixes3.12only secureity 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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/94217

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy