Skip to content

Unpickling ExceptionGroup no longer works in 3.2.0, was fine in 3.1.0 #84

@ilCatania

Description

@ilCatania

I have a test for some dask pickling/unpickling, and when I upgrade tblib, I get this:

func = <class 'ExceptionGroup'>, attrs = {'__dict__': {}, 'args': ('A message.', [ValueError('oh no!')])}, cause = None
tb = <traceback object at 0x7f8c23a0e600>, context = None, suppress_context = False, notes = None

    def unpickle_exception_with_attrs(func, attrs, cause, tb, context, suppress_context, notes):
>       inst = func.__new__(func)
               ^^^^^^^^^^^^^^^^^^
E       TypeError: BaseExceptionGroup.__new__() takes exactly 2 arguments (0 given)

/home/ilCatania/.pip/envs/my-env/lib64/python3.11/site-packages/tblib/pickling_support.py:26: TypeError

please let me know if you would like a reproducible example or any more info. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions