Skip to content

Throwing one exception in dicttoolz.itemmap() results in TypeError in cytoolz but NOT in toolz #162

@mrwizard82d1

Description

@mrwizard82d1

I have a deadline tomorrow and so have not been able to identify a small code snippet exhibiting the behavior.

I am running a unit test in my package. This unit test expects a custom exception to be thrown.

Using toolz, this unit test passes. I have replaced all statements import toolz.curried as toolz with import cytoolz.curried as toolz in my code base. After this change, a single unit test fails with the error:

AssertionError: 
Expected: Expected a callable raising <class 'orchid.native_data_frame_adapter.DataFrameAdapterDateTimeError'>
     but: TypeError("'cytoolz.functoolz.curry' object is not iterable") of type <class 'TypeError'> was raised instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions