From fbcb4a30c8fdd1b4192330f6d40ebe5a51f0870a 2013-02-13 19:30:01 From: Matthias BUSSONNIER Date: 2013-02-13 19:30:01 Subject: [PATCH] skip html on travis --- diff --git a/tests/test_references.py b/tests/test_references.py index 36414c3..6b63362 100644 --- a/tests/test_references.py +++ b/tests/test_references.py @@ -1,5 +1,6 @@ import io import nose.tools as nt +import os from nose.tools import nottest from converters import ( ConverterLaTeX, ConverterMarkdown, ConverterPy, ConverterHTML, @@ -10,6 +11,20 @@ from converters import ( def cleanfile(stn): return filter(None, map(unicode.strip, stn.split('\n'))) +@nottest +def skipiftravis(func): + if os.getenv('TRAVIS') == True: + func.__test__ = False + return func + +@nottest +def is_travis(): + return os.getenv('TRAVIS') == 'true' + +@nottest +def is_not_travis(): + return not is_travis() + def test_evens(): ###### @@ -26,8 +41,10 @@ def test_evens(): (ConverterMarkdown, 'md'), (ConverterLaTeX, 'tex'), (ConverterPy, 'py'), - (ConverterHTML, 'html') ] + if is_not_travis() : + converters.append((ConverterHTML, 'html')) + reflist = [ 'tests/ipynbref/IntroNumPy.orig' ]