File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,15 +161,17 @@ def _test_determinism(filename, usetex):
161161 # problem in the output property of the exception
162162 try :
163163 check_output ([sys .executable , '-R' , '-c' ,
164- 'import matplotlib; '
165- 'matplotlib.use("svg"); '
166- 'from matplotlib.tests.test_backend_svg '
167- 'import _test_determinism_save;'
168- '_test_determinism_save(%r, %r)' % (filename , usetex )],
169- stderr = STDOUT )
164+ 'import matplotlib; '
165+ 'matplotlib.use("svg"); '
166+ 'from matplotlib.tests.test_backend_svg '
167+ 'import _test_determinism_save;'
168+ '_test_determinism_save(%r, %r)' % (filename ,
169+ usetex )],
170+ stderr = STDOUT )
170171 except CalledProcessError as e :
171- # it's easier to use utf8 and ask for forgiveness than try to figure
172- # out what the current console has as an encoding :-/
172+ # it's easier to use utf8 and ask for forgiveness than try
173+ # to figure out what the current console has as an
174+ # encoding :-/
173175 print (e .output .decode (encoding = "utf-8" , errors = "ignore" ))
174176 raise e
175177 with open (filename , 'rb' ) as fd :
You can’t perform that action at this time.
0 commit comments