|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v6 7/9] iotests: ignore import warnings from pylint |
Date: | Thu, 27 Feb 2020 15:14:08 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/27/20 1:06 AM, John Snow wrote:
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.
I'm tempted to NAck this and require an "installable python module"... Let's discuss why it is that hard!
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-positionsys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) from qemu import qtest
[Prev in Thread] | Current Thread | [Next in Thread] |