pylint: useless-suppression in test_qt_javascript

When QtWebEngine is available, the suppression is useless.
This commit is contained in:
Florian Bruhin 2016-03-31 20:18:26 +02:00
parent 27b31b7ded
commit 89742beb4e

View File

@ -67,7 +67,7 @@ def test_element_js_webkit(webview, js_enabled, expected):
@pytest.mark.parametrize('js_enabled, expected', [(True, 2.0), (False, 2.0)])
def test_simple_js_webengine(qtbot, webengineview, js_enabled, expected):
"""With QtWebEngine, runJavaScript works even when JS is off."""
# pylint: disable=no-name-in-module
# pylint: disable=no-name-in-module,useless-suppression
# If we get there (because of the webengineview fixture) we can be certain
# QtWebEngine is available
from PyQt5.QtWebEngineWidgets import QWebEngineSettings