@given(strategies.objects())
> def test_anonymization(objtype_and_obj):
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_model.py:69:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/model/model.py:480: in from_dict
**d,
<attrs generated init swh.model.model.Revision>:27: in __init__
__attr_validator_extra_headers(self, __attr_extra_headers, self.extra_headers)
.tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:63: in _validator
_validate_elements(attribute, field, attribute.type)
.tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:89: in _validate_elements
_handle_tuple(attribute, value, expected_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
attribute = Attribute(name='extra_headers', default=(), validator=<function type_validator.<locals>._validator at 0x7f62aa1e9ea0>,...ta=mappingproxy({}), type=<class 'tuple'>, converter=<function tuplify_extra_headers at 0x7f62a8bc6d90>, kw_only=False)
container = ((b'kv{\xf1\x8a\x11\xb1\xa4v\xf6\xf8', b'\x95\xd6'), (b'ds-Qd\xf22', b'\xdd'))
expected_type = <class 'tuple'>
def _handle_tuple(attribute, container, expected_type):
> tuple_types = expected_type.__args__ # type: ignore
E AttributeError: type object 'tuple' has no attribute '__args__'
.tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:178: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Jul 1 2020, 5:40 PM