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 |
@@ -9,6 +10,20 b' from converters import (' | |||
|
9 | 10 | def cleanfile(stn): |
|
10 | 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 | 28 | def test_evens(): |
|
14 | 29 | ###### |
@@ -25,8 +40,10 b' def test_evens():' | |||
|
25 | 40 | (ConverterMarkdown, 'md'), |
|
26 | 41 | (ConverterLaTeX, 'tex'), |
|
27 | 42 | (ConverterPy, 'py'), |
|
28 | (ConverterHTML, 'html') | |
|
29 | 43 | ] |
|
44 | if is_not_travis() : | |
|
45 | converters.append((ConverterHTML, 'html')) | |
|
46 | ||
|
30 | 47 | reflist = [ |
|
31 | 48 | 'tests/ipynbref/IntroNumPy.orig' |
|
32 | 49 | ] |
General Comments 0
You need to be logged in to leave comments.
Login now