Skip to content

Regrid with esmpy tests failing on CI due to mock=4 #453

@valeriupredoi

Description

@valeriupredoi
    def __new__(cls, *args, **kw):
        # every instance has its own class
        # so we can create magic methods on the
        # class without stomping on other mocks
        bases = (cls,)
        if not issubclass(cls, AsyncMockMixin):
            # Check if spec is an async object or function
            bound_args = _MOCK_SIG.bind_partial(cls, *args, **kw).arguments
            spec_arg = bound_args.get('spec_set', bound_args.get('spec'))
>           if spec_arg and _is_async_obj(spec_arg):
E           ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

.eggs/mock-4.0.0b1-py3.7.egg/mock/mock.py:411: ValueError

Honestly I gots no clues where the CI machine picks up mock=4.0.0b1 and not 3.0.5 that's in my env and in all the conda-forge and pypi repos. Will investigate more - any clues @bouweandela ?

Metadata

Metadata

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