|
222 | 222 | # (source start file, target name, title, author, document class [howto/manual]).
|
223 | 223 |
|
224 | 224 | latex_documents = [
|
225 |
| - ('contents', 'Matplotlib.tex', 'Matplotlib', |
226 |
| - 'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the ' |
227 |
| - 'matplotlib development team', 'manual'), |
| 225 | + ('contents', 'Matplotlib.tex', 'Matplotlib', |
| 226 | + 'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the ' |
| 227 | + 'matplotlib development team', 'manual'), |
228 | 228 | ]
|
229 | 229 |
|
230 | 230 |
|
|
233 | 233 | latex_logo = None
|
234 | 234 |
|
235 | 235 | # Additional stuff for the LaTeX preamble.
|
236 |
| -latex_preamble =r""" |
| 236 | +latex_preamble = r""" |
237 | 237 | % In the parameters section, place a newline after the Parameters
|
238 | 238 | % header. (This is stolen directly from Numpy's conf.py, since it
|
239 | 239 | % affects Numpy-style docstrings).
|
|
271 | 271 | """ % matplotlib.__version__numpy__
|
272 | 272 |
|
273 | 273 | texinfo_documents = [
|
274 |
| - ("contents", 'matplotlib', 'Matplotlib Documentation', |
275 |
| - 'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*' |
276 |
| - 'The matplotlib development team', |
277 |
| - 'Matplotlib', "Python plotting package", 'Programming', |
278 |
| - 1), |
| 274 | + ("contents", 'matplotlib', 'Matplotlib Documentation', |
| 275 | + 'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*' |
| 276 | + 'The matplotlib development team', |
| 277 | + 'Matplotlib', "Python plotting package", 'Programming', |
| 278 | + 1), |
279 | 279 | ]
|
280 | 280 |
|
281 | 281 | try:
|
@@ -312,10 +312,15 @@ class QMainWindow(object):
|
312 | 312 | pass
|
313 | 313 |
|
314 | 314 |
|
| 315 | +class MySip(MagicMock): |
| 316 | + def getapi(*args): |
| 317 | + return 1 |
| 318 | + |
| 319 | + |
315 | 320 | mockwxversion = MagicMock()
|
316 | 321 | mockwx = MyWX()
|
| 322 | +mocksip = MySip() |
317 | 323 | mockpyqt4 = MyPyQt4()
|
318 |
| -mocksip = MagicMock() |
319 | 324 | sys.modules['wxversion'] = mockwxversion
|
320 | 325 | sys.modules['wx'] = mockwx
|
321 | 326 | sys.modules['sip'] = mocksip
|
|
0 commit comments