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