Skip to content

__lazy_import__ errors in test_xpickle #144878

@smontanaro

Description

@smontanaro

Bug report

Bug description:

ERROR: test_builtin_functions (test.test_xpickle.CPicklePython314Compat.test_builtin_functions) (name='__lazy_import__', proto=1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/skip/src/python/cpython/Lib/test/pickletester.py", line 3238, in test_builtin_functions
    s = self.dumps(t, proto)
  File "/Users/skip/src/python/cpython/Lib/test/test_xpickle.py", line 190, in dumps
    return self.send_to_worker(python, data)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/Users/skip/src/python/cpython/Lib/test/test_xpickle.py", line 172, in send_to_worker
    raise exception
AttributeError: module 'builtins' has no attribute '__lazy_import__'

test_xpickle seems to be failing with the above traceback for every version it's tested with and for all protocols. I have a bunch of versions available, 2.7 and 3.7-3.14 in addition to main. The above traceback is from my Mac, but I get the same failure on my Linux laptop.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux, macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions