##// END OF EJS Templates
Merge remote-tracking branch 'upstream/master' into add-more-windows-ci
Nicholas Bollweg -
r25228:edf31214 merge
parent child Browse files
Show More
@@ -310,12 +310,12 b' def activate_matplotlib(backend):'
310 # magic of switch_backend().
310 # magic of switch_backend().
311 matplotlib.rcParams['backend'] = backend
311 matplotlib.rcParams['backend'] = backend
312
312
313 import matplotlib.pyplot
313 # Due to circular imports, pyplot may be only partially initialised
314 matplotlib.pyplot.switch_backend(backend)
314 # when this function runs.
315 # So avoid needing matplotlib attribute-lookup to access pyplot.
316 from matplotlib import pyplot as plt
315
317
316 # This must be imported last in the matplotlib series, after
318 plt.switch_backend(backend)
317 # backend/interactivity choices have been made
318 import matplotlib.pyplot as plt
319
319
320 plt.show._needmain = False
320 plt.show._needmain = False
321 # We need to detect at runtime whether show() is called by the user.
321 # We need to detect at runtime whether show() is called by the user.
@@ -585,7 +585,7 b' class EmbeddedSphinxShell(object):'
585 if self.warning_is_error:
585 if self.warning_is_error:
586 raise RuntimeError('Non Expected warning in `{}` line {}'.format(filename, lineno))
586 raise RuntimeError('Non Expected warning in `{}` line {}'.format(filename, lineno))
587
587
588 self.cout.truncate(0)
588 self.clear_cout()
589 return (ret, input_lines, processed_output,
589 return (ret, input_lines, processed_output,
590 is_doctest, decorator, image_file, image_directive)
590 is_doctest, decorator, image_file, image_directive)
591
591
General Comments 0
You need to be logged in to leave comments. Login now