HomeSoftware Heritage

tests: Clean hashutil._blake2_hash_cache after mocking blake2 functions.

Description

tests: Clean hashutil._blake2_hash_cache after mocking blake2 functions.

Depending on the order in which tests are run, these tests may insert
lambdas with mocked blake2 functions in their closure to be inserted in
hashutil._blake2_hash_cache; causing all future tests to fail.

While this does not happen with the default order of tests, it does when
using pytest-xdist.

Details

Provenance
vlorentzAuthored on Feb 19 2021, 10:29 AM
vlorentzPushed on Feb 19 2021, 10:49 AM
Differential Revision
D5113: tests: Clean hashutil._blake2_hash_cache after mocking blake2 functions.
Parents
rDMOD0c1658128322: Make explicit Python 3 dependency
Branches
Unknown
Tags
Unknown
Build Status
Buildable 19376
Build 30047: test-and-buildJenkins console · Jenkins

Event Timeline