From f0d6b34e334f8802a2cfc14237050d92b3178b1d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 6 Dec 2017 14:32:59 +0100 Subject: [PATCH] TT#26831 tests/test_check.py: ignore module level imports at top of file Recent versions of pep8 check for this, while we are modifying system path to load functions from check.py. Since we need at least the os and sys modules for modifying system path and being able to run `from check import ...` let's ignore this problem for now. Change-Id: Ia9f3ea2c67c3a720896f1c92031544ac7e688025 --- tests/test_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_check.py b/tests/test_check.py index 2cb0010a..a2361d5c 100755 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -25,9 +25,9 @@ import unittest import re lib_path = os.path.abspath('bin') sys.path.append(lib_path) -from check import check_sip, check_sip_out -from check import XAvp, Test, check_flow, check_flow_vars -from check import load_json, load_yaml +from check import check_sip, check_sip_out # noqa +from check import XAvp, Test, check_flow, check_flow_vars # noqa +from check import load_json, load_yaml # noqa not_ok = re.compile('^not ok.*', re.MULTILINE)