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:14 AM
anlambertPushed on Mar 22 2022, 11:58 AM
Differential Revision
D7406: pytest: Exclude build directory for tests discovery
Parents
rDMODbc3831fddcd3: Exclude name and email attributes from People comparison
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27682
Build 43317: test-and-buildJenkins console · Jenkins