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.
This commit is contained in:
Florian Bruhin 2015-09-17 19:12:28 +02:00
parent a6f113375c
commit 0f69487f22

View File

@ -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)