Skip to content

Commit

Permalink
try RTD fix: mock sip and print class hierarchy for Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Aug 31, 2017
1 parent d817a28 commit 2944e0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['PyQt5', 'PyQt5.QtWidgets', 'PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtWidgets.QWidget']
MOCK_MODULES = ['PyQt5', 'PyQt5.QtWidgets', 'PyQt5.QtCore', 'PyQt5.QtGui', 'sip']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

else:
Expand Down
2 changes: 2 additions & 0 deletions msl/qt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from msl.qt import prompt
from msl.qt.io import get_icon

import inspect
print(inspect.getmro(QtWidgets.QWidget))

class Logger(logging.Handler, QtWidgets.QWidget):

Expand Down

0 comments on commit 2944e0d

Please sign in to comment.