[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 03/10] iotests: ignore import warnings from pylint
From: |
John Snow |
Subject: |
[PATCH v7 03/10] iotests: ignore import warnings from pylint |
Date: |
Wed, 4 Mar 2020 16:38:11 -0500 |
The right way to solve this is to come up with a virtual environment
infrastructure that sets all the paths correctly, and/or to create
installable python modules that can be imported normally.
That's hard, so just silence this error for now.
Signed-off-by: John Snow <address@hidden>
---
tests/qemu-iotests/iotests.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index cd0f185d30..fd65b90691 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -29,6 +29,7 @@
import io
from collections import OrderedDict
+# pylint: disable=import-error, wrong-import-position
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
from qemu import qtest
--
2.21.1
- [PATCH v7 00/10] iotests: use python logging, John Snow, 2020/03/04
- [PATCH v7 03/10] iotests: ignore import warnings from pylint,
John Snow <=
- [PATCH v7 07/10] iotests: add script_initialize, John Snow, 2020/03/04
- [PATCH v7 02/10] iotests: don't use 'format' for drive_add, John Snow, 2020/03/04
- [PATCH v7 04/10] iotests: replace mutable list default args, John Snow, 2020/03/04
- [PATCH v7 05/10] iotests: add pylintrc file, John Snow, 2020/03/04
- [PATCH v7 01/10] iotests: do a light delinting, John Snow, 2020/03/04
- [PATCH v7 06/10] iotests: limit line length to 79 chars, John Snow, 2020/03/04