From 3af84b85b157e581ae8aaff4d076be523663c1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucy=20Jim=C3=A9nez?= Date: Tue, 15 Mar 2022 04:57:06 -0500 Subject: [PATCH] CLN: Fix pep8 issues on test/test_find.py (#1150) --- setup.cfg | 3 +-- test/test_find.py | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/setup.cfg b/setup.cfg index 6f097bb5b..d851c94e9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -84,8 +84,7 @@ exclude = setup.py, test/test_runner.py, test/test_run.py, test/test_rm.py, - test/test_continuous.py, - test/test_find.py + test/test_continuous.py [isort] line_length = 99 diff --git a/test/test_find.py b/test/test_find.py index d39b8b934..ad14df46a 100644 --- a/test/test_find.py +++ b/test/test_find.py @@ -1,7 +1,6 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst import os -import sys import pytest @@ -27,7 +26,9 @@ def test_find(capfd, tmpdir): (6, 6), ] - tmpdir, local, conf, machine_file = generate_basic_conf(tmpdir, values=values, dummy_packages=False) + tmpdir, local, conf, machine_file = generate_basic_conf(tmpdir, + values=values, + dummy_packages=False) # Test find at least runs tools.run_asv_with_conf(conf, 'find', "master~5..master", "params_examples.track_find_test", @@ -50,7 +51,9 @@ def test_find_timeout(capfd, tmpdir): (1, -1) ] - tmpdir, local, conf, machine_file = generate_basic_conf(tmpdir, values=values, dummy_packages=False) + tmpdir, local, conf, machine_file = generate_basic_conf(tmpdir, + values=values, + dummy_packages=False) # Test find at least runs tools.run_asv_with_conf(conf, 'find', "-e", "master", "params_examples.time_find_test_timeout", @@ -75,15 +78,18 @@ def test_find_inverted(capfd, tmpdir): (6, 1), ] - - tmpdir, local, conf, machine_file = generate_basic_conf(tmpdir, values=values, dummy_packages=False) - tools.run_asv_with_conf(*[conf, 'find',"-i", f"master~4..master", "params_examples.track_find_test"], + tmpdir, local, conf, machine_file = generate_basic_conf(tmpdir, + values=values, + dummy_packages=False) + tools.run_asv_with_conf(*[conf, 'find', + "-i", "master~4..master", + "params_examples.track_find_test"], _machine_file=machine_file) output, err = capfd.readouterr() regression_hash = check_output( - [which('git'), 'rev-parse', f'master^'], cwd=conf.repo) + [which('git'), 'rev-parse', 'master^'], cwd=conf.repo) formatted = "Greatest improvement found: {0}".format(regression_hash[:8]) assert formatted in output