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 23 2022, 10:46 AM
anlambertPushed on Mar 23 2022, 10:48 AM
Parents
rDCORE89d7442beacb: Fix a typo
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27733
Build 43409: test-and-buildJenkins console · Jenkins