$OpenBSD: patch-lib_matplotlib_sphinxext_tests_test_tinypages_py,v 1.1 2016/11/14 18:55:50 shadchin Exp $
--- lib/matplotlib/sphinxext/tests/test_tinypages.py.orig	Thu Nov 10 13:21:53 2016
+++ lib/matplotlib/sphinxext/tests/test_tinypages.py	Thu Nov 10 13:22:45 2016
@@ -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 = ['sphinx-build', '-W', '-b', 'html',
+            cmd = ['sphinx-build${MODPY_BIN_SUFFIX}', '-W', '-b', 'html',
                    '-d', cls.doctree_dir,
                    TINY_PAGES,
                    cls.html_dir]
