Page MenuHomeSoftware Heritage

hypothesis: Fix errors appeared with release 6.0
ClosedPublic

Authored by anlambert on Jan 12 2021, 4:19 PM.

Details

Summary

hypothesis 6.0 release turned the warning about using function scope
pytest fixtures into an error which makes a lot of tests now failing.

So add the new HealthCheck.function_scoped_fixture value into the
suppress_health_check list of hypothesis profiles settings.

Diff Detail

Repository
rDWAPPS Web applications
Branch
fix-hypothesis-5.49-errors
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 18297
Build 28253: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 28252: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D4845 (id=17153)

Rebasing onto e605c3fa70...

Current branch diff-target is up to date.
Changes applied before test
commit e702c28aee49a96641f2881a09f8083c417a9426
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Jan 12 16:17:14 2021 +0100

    hypothesis: Fix errors appeared with release 6.0
    
    hypothesis 6.0 release turned the warning about using function scope
    pytest fixtures into an error which makes a lot of tests now failing.
    
    So add the new HealthCheck.function_scoped_fixture value into the
    suppress_health_check list of hypothesis profiles settings.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/551/ for more details.

This revision is now accepted and ready to land.Jan 12 2021, 5:14 PM