##// END OF EJS Templates
skip html on travis
Matthias BUSSONNIER -
Show More
@@ -1,5 +1,6 b''
1 import io
1 import io
2 import nose.tools as nt
2 import nose.tools as nt
3 import os
3 from nose.tools import nottest
4 from nose.tools import nottest
4 from converters import (
5 from converters import (
5 ConverterLaTeX, ConverterMarkdown, ConverterPy, ConverterHTML
6 ConverterLaTeX, ConverterMarkdown, ConverterPy, ConverterHTML
@@ -9,6 +10,20 b' from converters import ('
9 def cleanfile(stn):
10 def cleanfile(stn):
10 return filter(None, map(unicode.strip, stn.split('\n')))
11 return filter(None, map(unicode.strip, stn.split('\n')))
11
12
13 @nottest
14 def skipiftravis(func):
15 if os.getenv('TRAVIS') == True:
16 func.__test__ = False
17 return func
18
19 @nottest
20 def is_travis():
21 return os.getenv('TRAVIS') == 'true'
22
23 @nottest
24 def is_not_travis():
25 return not is_travis()
26
12
27
13 def test_evens():
28 def test_evens():
14 ######
29 ######
@@ -25,8 +40,10 b' def test_evens():'
25 (ConverterMarkdown, 'md'),
40 (ConverterMarkdown, 'md'),
26 (ConverterLaTeX, 'tex'),
41 (ConverterLaTeX, 'tex'),
27 (ConverterPy, 'py'),
42 (ConverterPy, 'py'),
28 (ConverterHTML, 'html')
29 ]
43 ]
44 if is_not_travis() :
45 converters.append((ConverterHTML, 'html'))
46
30 reflist = [
47 reflist = [
31 'tests/ipynbref/IntroNumPy.orig'
48 'tests/ipynbref/IntroNumPy.orig'
32 ]
49 ]
General Comments 0
You need to be logged in to leave comments. Login now