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

Appearance settings

__lazy_import__ errors in test_xpickle #144878

Copy link
Copy link
@smontanaro

Description

@smontanaro
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    Status
    Done
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.