diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -16,3 +16,9 @@ $ROOT/tests - Tests for the infrastructure. For more information, see the web documentation, or docs/. + +Testing +======= + +Testing is done by running tox from the top-level directory. It runs the tests +for both Python 2 and Python 3, it also checks code style. diff --git a/lnt/formats/__init__.py b/lnt/formats/__init__.py --- a/lnt/formats/__init__.py +++ b/lnt/formats/__init__.py @@ -10,7 +10,7 @@ from __future__ import absolute_import from typing import List, Dict try: - from plistlib import readPlist + from plistlib import readPlist # noqa: F401 # used to test exception from .PlistFormat2 import format as plist # for Python 2 except ImportError: from .PlistFormat import format as plist # for Python 3 diff --git a/lnt/testing/profile/profile.py b/lnt/testing/profile/profile.py --- a/lnt/testing/profile/profile.py +++ b/lnt/testing/profile/profile.py @@ -30,10 +30,11 @@ ret = None with open(f, 'rb') as fd: if impl is lnt.testing.profile.perf.LinuxPerfProfile: - ret = impl.deserialize(fd, - nm = os.getenv('CMAKE_NM', 'nm'), - objdump = os.getenv('CMAKE_OBJDUMP', 'objdump'), - binaryCacheRoot = os.getenv('LNT_BINARY_CACHE_ROOT', '')) + ret = impl.deserialize( + fd, + nm=os.getenv('CMAKE_NM', 'nm'), + objdump=os.getenv('CMAKE_OBJDUMP', 'objdump'), + binaryCacheRoot=os.getenv('LNT_BINARY_CACHE_ROOT', '')) else: ret = impl.deserialize(fd) if ret: