common/build-style/python3-pep517.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:
icp 2023-07-08 22:00:55 +05:30 committed by classabbyamp
parent 997caab87c
commit 0e1f4fc46a
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ do_check() {
python3 -m installer --destdir "${testdir}" \ python3 -m installer --destdir "${testdir}" \
${make_install_args} ${make_install_target:-dist/*.whl} ${make_install_args} ${make_install_target:-dist/*.whl}
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \ PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" PY_IGNORE_IMPORTMISMATCH=1 \
${make_check_pre} pytest3 ${testjobs} ${make_check_args} ${make_check_target} ${make_check_pre} pytest3 ${testjobs} ${make_check_args} ${make_check_target}
} }