Skip to content

Commit 7aecbbd

Browse files
committed
BLD: Modified mocksip to allow for building the docs without qt being
installed
1 parent 340ef8d commit 7aecbbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/conf.py

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

314314

315+
class mocksip(MagicMock):
316+
def getapi(*args):
317+
return 1
318+
319+
315320
mockwxversion = MagicMock()
316321
mockwx = MyWX()
317322
mockpyqt4 = MyPyQt4()
318-
mocksip = MagicMock()
319323
sys.modules['wxversion'] = mockwxversion
320324
sys.modules['wx'] = mockwx
321325
sys.modules['sip'] = mocksip

0 commit comments

Comments
 (0)