[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 7/9] iotests: ignore import warnings from pylint
From: |
John Snow |
Subject: |
[PATCH v6 7/9] iotests: ignore import warnings from pylint |
Date: |
Wed, 26 Feb 2020 19:06:37 -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 60c4c7f736..214f59995e 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -30,6 +30,7 @@
from collections import OrderedDict
from typing import Collection
+# 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 v6 0/9] iotests: use python logging, John Snow, 2020/02/26
- [PATCH v6 3/9] iotests: replace mutable list default args, John Snow, 2020/02/26
- [PATCH v6 4/9] iotest 258: use script_main, John Snow, 2020/02/26
- [PATCH v6 7/9] iotests: ignore import warnings from pylint,
John Snow <=
- [PATCH v6 8/9] iotests: don't use 'format' for drive_add, John Snow, 2020/02/26
- [PATCH v6 2/9] iotests: add script_initialize, John Snow, 2020/02/26
- [PATCH v6 6/9] iotests: use python logging for iotests.log(), John Snow, 2020/02/26
- [PATCH v6 1/9] iotests: do a light delinting, John Snow, 2020/02/26