From 30c9d38842680227603f4ec40d9185bdcd9e4d4d Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Fri, 26 Jun 2015 15:34:28 +0200 Subject: [PATCH] also pep8-test the test script; restore pep8 for update.py --- .travis.yml | 1 + test/test.py | 3 --- update.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index be2683c..80e6603 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ install: - sudo pip install pytest pep8 script: - pep8 --ignore=E501 update.py + - pep8 --ignore=E501 test/test.py - py.test -vv test/test.py diff --git a/test/test.py b/test/test.py index 6312f21..48eed90 100644 --- a/test/test.py +++ b/test/test.py @@ -3,7 +3,6 @@ import subprocess HERE = os.path.abspath(os.path.dirname(__file__)) -#------------------------------------------------------------------------------- def exe(command): stdout, stderr = subprocess.Popen(command.split(), @@ -11,7 +10,6 @@ def exe(command): stderr=subprocess.PIPE).communicate() return stdout, stderr -#------------------------------------------------------------------------------- def test_cxx(): os.chdir(os.path.join(HERE, 'cxx', 'cmake')) @@ -25,7 +23,6 @@ def test_cxx(): stdout, stderr = exe('./bin/example') assert 'Hello World!' in stdout -#------------------------------------------------------------------------------- def test_fc(): os.chdir(os.path.join(HERE, 'fc', 'cmake')) diff --git a/update.py b/update.py index 1998620..bb1cf30 100755 --- a/update.py +++ b/update.py @@ -61,7 +61,7 @@ def align_options(options): l = len(opt[0]) s = [] for opt in options: - s.append(' %s%s %s' % (opt[0], ' '*(l - len(opt[0])), opt[1])) + s.append(' %s%s %s' % (opt[0], ' ' * (l - len(opt[0])), opt[1])) return '\n'.join(s)