common/build-style/python3-module.sh: enable PY_IGNORE_IMPORTMISMATCH
for testing
Fixes `ImportMismatchError` for doctest-modules in pytest Ref: https://github.com/pytest-dev/pytest/issues/2042#issuecomment-381309723
This commit is contained in:
parent
c5e97569ee
commit
997caab87c
@ -12,7 +12,7 @@ do_check() {
|
||||
if python3 -c 'import xdist' >/dev/null 2>&1; then
|
||||
testjobs="-n $XBPS_MAKEJOBS"
|
||||
fi
|
||||
PYTHONPATH="$(cd build/lib* && pwd)" \
|
||||
PYTHONPATH="$(cd build/lib* && pwd)" PY_IGNORE_IMPORTMISMATCH=1 \
|
||||
${make_check_pre} \
|
||||
python3 -m pytest ${testjobs} ${make_check_args} ${make_check_target}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user