Disable no-member for pylint for os.SEEK_*.

This should fix pylint on Windows.
This commit is contained in:
Florian Bruhin 2015-06-11 10:49:06 +02:00
parent 480c4e878e
commit 3e8a394217

View File

@ -748,9 +748,9 @@ class TestPyQIODevice:
def test_seek_unsupported(self, pyqiodev):
"""Test seeking with unsupported whence arguments."""
if hasattr(os, 'SEEK_HOLE'):
whence = os.SEEK_HOLE
whence = os.SEEK_HOLE # pylint: disable=no-member
elif hasattr(os, 'SEEK_DATA'):
whence = os.SEEK_DATA
whence = os.SEEK_DATA # pylint: disable=no-member
else:
pytest.skip("Needs os.SEEK_HOLE or os.SEEK_DATA available.")
pyqiodev.open(QIODevice.ReadOnly)