Page MenuHomeSoftware Heritage

tests: Fix sampled_from hypothesis strategy import
ClosedPublic

Authored by anlambert on Aug 23 2021, 6:06 PM.

Details

Summary

It should be imported from hypothesis.strategies instead from the internal
private module.

This fixes Python tests when building debian buster package.

See https://jenkins.softwareheritage.org/job/debian/job/packages/job/DWAPPS/job/gbp-buildpackage/315/console

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6123 (id=22151)

Rebasing onto c7548f93a1...

Current branch diff-target is up to date.
Changes applied before test
commit 8acd7263692877a2b9c0ff95a0546900cab0e5fc
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Aug 23 18:05:38 2021 +0200

    tests: Fix sampled_from hypothesis strategy import
    
    It should be imported from hypothesis.strategies instead from the internal
    private module.
    
    This fixes Python tests when building debian buster package.

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

This revision is now accepted and ready to land.Aug 23 2021, 6:53 PM