Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a3dc18

Browse files
committed
Merge pull request #1 from jenshnielsen/mocksip_for_docbuild_without_qt_fix
Instantiate Sip Mock before use
2 parents 45e1dea + 2951584 commit 8a3dc18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,14 @@ class QMainWindow(object):
312312
pass
313313

314314

315-
class mocksip(MagicMock):
315+
class MySip(MagicMock):
316316
def getapi(*args):
317317
return 1
318318

319319

320320
mockwxversion = MagicMock()
321321
mockwx = MyWX()
322+
mocksip = MySip()
322323
mockpyqt4 = MyPyQt4()
323324
sys.modules['wxversion'] = mockwxversion
324325
sys.modules['wx'] = mockwx

0 commit comments

Comments
 (0)