From 0f69487f222e332e235656777cadbfba839c7ab4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 17 Sep 2015 19:12:28 +0200 Subject: [PATCH] Adjust pylint ignores for py.path. Since db513aa pylint can now import py, but fails because it can't infer that there's a py.path. --- tests/unit/misc/test_ipc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/misc/test_ipc.py b/tests/unit/misc/test_ipc.py index f6114d7f2..83f22a309 100644 --- a/tests/unit/misc/test_ipc.py +++ b/tests/unit/misc/test_ipc.py @@ -31,7 +31,7 @@ import subprocess from unittest import mock import pytest -import py.path # pylint: disable=import-error +import py.path # pylint: disable=no-name-in-module from PyQt5.QtCore import pyqtSignal, QObject from PyQt5.QtNetwork import QLocalServer, QLocalSocket, QAbstractSocket from PyQt5.QtTest import QSignalSpy @@ -48,7 +48,7 @@ Args = collections.namedtuple('Args', 'basedir') @pytest.yield_fixture() def short_tmpdir(): with tempfile.TemporaryDirectory() as tdir: - yield py.path.local(tdir) + yield py.path.local(tdir) # pylint: disable=no-member @pytest.yield_fixture(autouse=True)