File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
baseline_dir , result_dir = _image_directories (lambda : 'dummy func' )
15
15
16
+
16
17
def check_for (texsystem ):
17
18
header = r"""
18
19
\documentclass{minimal}
@@ -32,6 +33,7 @@ def check_for(texsystem):
32
33
33
34
return latex .returncode == 0
34
35
36
+
35
37
def switch_backend (backend ):
36
38
37
39
def switch_backend_decorator (func ):
@@ -48,6 +50,7 @@ def backend_switcher(*args, **kwargs):
48
50
return nose .tools .make_decorator (func )(backend_switcher )
49
51
return switch_backend_decorator
50
52
53
+
51
54
def compare_figure (fname ):
52
55
actual = os .path .join (result_dir , fname )
53
56
plt .savefig (actual )
@@ -126,3 +129,7 @@ def test_rcupdate():
126
129
mpl .rcParams .update (rc_set )
127
130
create_figure ()
128
131
compare_figure ('pgf_rcupdate%d.pdf' % (i + 1 ))
132
+
133
+ if __name__ == '__main__' :
134
+ import nose
135
+ nose .runmodule (argv = ['-s' ,'--with-doctest' ], exit = False )
You can’t perform that action at this time.
0 commit comments