-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
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 ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels