File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -161,15 +161,17 @@ def _test_determinism(filename, usetex):
161
161
# problem in the output property of the exception
162
162
try :
163
163
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 )
170
171
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 :-/
173
175
print (e .output .decode (encoding = "utf-8" , errors = "ignore" ))
174
176
raise e
175
177
with open (filename , 'rb' ) as fd :
You can’t perform that action at this time.
0 commit comments