HomeSoftware Heritage

model: Fix hypothesis integration with attr < 21.3.0

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

model: Fix hypothesis integration with attr < 21.3.0

When using attr < 21.3.0, adding field transformer breaks attrs
integration with hypothesis, because attributes transformed with
such function are not casted to generated AttrsClass, but remains
just an list of attributes. This causes error in hypothesis by
raising an AttributeError.

As we use attr 21.2.0 in production and when building debian buster
package, add a workaround for that issue as explained here:
https://github.com/python-attrs/attrs/issues/821.

Details

Provenance
anlambertAuthored on Oct 17 2022, 5:22 PM
anlambertPushed on Oct 17 2022, 7:05 PM
Differential Revision
D8688: model: Fix hypothesis integration with attr < 21.3.0
Build Status
Buildable 32340
Build 50652: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.