HomeSoftware Heritage

pytest: Exclude build directory for tests discovery

Description

pytest: Exclude build directory for tests discovery

Due to test modules being copied in subdirectories of the
build directory by setuptools, it makes pytest fail by raising
ImportPathMismatchError exceptions when invoked from root
directory of the module.

So ignore the build folder to discover tests.

Details

Provenance
anlambertAuthored on Mar 22 2022, 11:57 AM
anlambertPushed on Mar 22 2022, 11:57 AM
Parents
rDLDCVSaea6e49ffd4a: Let the log instruction do the formatting
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27667
Build 43302: test-and-buildJenkins console · Jenkins