HomeSoftware Heritage

pytest: Exclude build directory for tests discovery
92c78ab54726Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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:58 AM
vlorentzPushed on Mar 23 2022, 11:08 AM
Parents
R65:98b41c854968: backfill: Add missing raw_manifest to directories
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/26833, tag: phabricator/base/26816

Event Timeline