diff --git a/tests/test_style.py b/tests/test_style.py index 6af9509..1a32efc 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -21,7 +21,9 @@ import unittest import six REPO_PATH = os.path.abspath( - os.path.join(os.path.dirname(__file__), '..', 'pagure')) + os.path.join(os.path.dirname(__file__), "..", "pagure") +) +TESTS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__))) class TestStyle(unittest.TestCase): @@ -72,7 +74,14 @@ class TestStyle(unittest.TestCase): non-zero exit code. """ black_command = [ - sys.executable, '-m', 'black', '-l', '79', '--check', REPO_PATH + sys.executable, + "-m", + "black", + "-l", + "79", + "--check", + REPO_PATH, + TESTS_PATH, ] proc = subprocess.Popen( black_command,