DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
+python_prepare_all() {
+ # ASAN and sandbox both want control over LD_PRELOAD
+ # https://bugs.gentoo.org/673016
+ sed -i -e 's/test_generate_gir_with_address_sanitizer/_&/' run_unittests.py || die
+
+ distutils-r1_python_prepare_all
+}
+
python_test() {
(
# test_meson_installed
# test_cross_file_system_paths
unset XDG_DATA_HOME
- # ASAN and sandbox both want to control LDPRELOAD
- # https://bugs.gentoo.org/673016
- export SANDBOX_ON=0
- unset LD_PRELOAD
-
${EPYTHON} -u run_tests.py
) || die "Testing failed with ${EPYTHON}"
}
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
+python_prepare_all() {
+ # ASAN and sandbox both want control over LD_PRELOAD
+ # https://bugs.gentoo.org/673016
+ sed -i -e 's/test_generate_gir_with_address_sanitizer/_&/' run_unittests.py || die
+
+ distutils-r1_python_prepare_all
+}
+
python_test() {
(
# test_meson_installed
# test_cross_file_system_paths
unset XDG_DATA_HOME
- # ASAN and sandbox both want to control LDPRELOAD
- # https://bugs.gentoo.org/673016
- export SANDBOX_ON=0
- unset LD_PRELOAD
-
${EPYTHON} -u run_tests.py
) || die "Testing failed with ${EPYTHON}"
}
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
+python_prepare_all() {
+ # ASAN and sandbox both want control over LD_PRELOAD
+ # https://bugs.gentoo.org/673016
+ sed -i -e 's/test_generate_gir_with_address_sanitizer/_&/' run_unittests.py || die
+
+ distutils-r1_python_prepare_all
+}
+
python_test() {
(
# test_meson_installed
# test_cross_file_system_paths
unset XDG_DATA_HOME
- # ASAN and sandbox both want to control LDPRELOAD
- # https://bugs.gentoo.org/673016
- export SANDBOX_ON=0
- unset LD_PRELOAD
-
${EPYTHON} -u run_tests.py
) || die "Testing failed with ${EPYTHON}"
}