Skip to content

Commit

Permalink
test_tinypages: pytest compatible module level setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kojoley committed Jul 28, 2016
1 parent 001343a commit f869aba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/matplotlib/sphinxext/tests/test_tinypages.py
Expand Up @@ -14,7 +14,7 @@
TINY_PAGES = pjoin(HERE, 'tinypages')


def check_sphinx_build():
def setup_module():
"""Check we have the sphinx-build command"""
try:
ret = call(['sphinx-build', '--help'], stdout=PIPE, stderr=PIPE)
Expand All @@ -37,7 +37,6 @@ class TestTinyPages(object):

@classmethod
def setup_class(cls):
check_sphinx_build()
cls.page_build = tempfile.mkdtemp()
try:
cls.html_dir = pjoin(cls.page_build, 'html')
Expand Down

0 comments on commit f869aba

Please sign in to comment.