Skip to content

Commit d43c9bc

Browse files
committed
removed qt_compat from coverage
because each travis job imports either PySide or PyQt, coveralls thinks some jobs are missing coverage in qt_compat, which in overall is not true also, removed dummy __main__ at the end of basics
1 parent 0669721 commit d43c9bc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pytestqt/_tests/test_basics.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,3 @@ def event_recorder(qtbot):
9090
widget = EventRecorder()
9191
qtbot.addWidget(widget)
9292
return widget
93-
94-
95-
if __name__ == '__main__':
96-
pytest.main(args=['-s'])

pytestqt/qt_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
1212

13-
if not on_rtd:
13+
if not on_rtd: # pragma: no cover
1414
try:
1515
import PySide.QtCore as _QtCore
1616
QtCore = _QtCore

0 commit comments

Comments
 (0)