From 3e8a394217668d00a0c249d5d01f1f40dcb3f328 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 11 Jun 2015 10:49:06 +0200 Subject: [PATCH] Disable no-member for pylint for os.SEEK_*. This should fix pylint on Windows. --- tests/utils/test_qtutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils/test_qtutils.py b/tests/utils/test_qtutils.py index 1d52d677c..25bf728c2 100644 --- a/tests/utils/test_qtutils.py +++ b/tests/utils/test_qtutils.py @@ -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)