$OpenBSD: patch-lib_matplotlib_sphinxext_tests_test_tinypages_py,v 1.2 2018/10/29 00:28:50 daniel Exp $
Index: lib/matplotlib/sphinxext/tests/test_tinypages.py
--- lib/matplotlib/sphinxext/tests/test_tinypages.py.orig
+++ lib/matplotlib/sphinxext/tests/test_tinypages.py
@@ -17,7 +17,7 @@ TINY_PAGES = pjoin(HERE, 'tinypages')
 def setup():
     # Check we have the sphinx-build command
     try:
-        ret = call(['sphinx-build', '--help'], stdout=PIPE, stderr=PIPE)
+        ret = call(['sphinx-build${MODPY_BIN_SUFFIX}', '--help'], stdout=PIPE, stderr=PIPE)
     except OSError:
         raise SkipTest('Need sphinx-build on path for these tests')
     if ret != 0:
@@ -42,7 +42,7 @@ class TestTinyPages(object):
             cls.html_dir = pjoin(cls.page_build, 'html')
             cls.doctree_dir = pjoin(cls.page_build, 'doctrees')
             # Build the pages with warnings turned into errors
-            cmd = [str('sphinx-build'), '-W', '-b', 'html',
+            cmd = [str('sphinx-build${MODPY_BIN_SUFFIX}'), '-W', '-b', 'html',
                    '-d', cls.doctree_dir,
                    TINY_PAGES,
                    cls.html_dir]
