commit:     0a402a7eb06f7d5d3311fcf7d98e67041f6e5072
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 12:06:38 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 12:09:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a402a7e

dev-python/matplotlib: Fix running tests in virtx

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/matplotlib/matplotlib-3.2.1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-python/matplotlib/matplotlib-3.2.1.ebuild 
b/dev-python/matplotlib/matplotlib-3.2.1.ebuild
index 73d88adfdbe..4f734e5cc24 100644
--- a/dev-python/matplotlib/matplotlib-3.2.1.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.2.1.ebuild
@@ -199,7 +199,6 @@ python_configure() {
 wrap_setup() {
        local MAKEOPTS=-j1
        local -x MPLSETUPCFG="${BUILD_DIR}"/setup.cfg
-       unset DISPLAY
        "$@"
 }
 
@@ -219,6 +218,10 @@ python_compile_all() {
        fi
 }
 
+src_test() {
+       virtx distutils-r1_src_test
+}
+
 python_test() {
        # we need to rebuild mpl against bundled freetype, otherwise
        # over 1000 tests will fail because of mismatched font rendering

Reply via email to