summaryrefslogtreecommitdiff
path: root/test/run.py
diff options
context:
space:
mode:
authorSchoolGuy <matrixfueller@gmail.com>2021-01-13 09:14:13 +0100
committerSchoolGuy <matrixfueller@gmail.com>2021-01-13 09:14:13 +0100
commita7470248fed0f67a9b6bfd57e81dcc0a96a75fa6 (patch)
treeb987fdedc4c0334436bd58396d4f4ea514b4fb21 /test/run.py
parentb59f6c8ce99e208e128911550b259306a65edcd7 (diff)
downloadpython-magic-a7470248fed0f67a9b6bfd57e81dcc0a96a75fa6.tar.gz
Reformat according to PEP
I achieved this via the PyCharm Reformat Shortcut
Diffstat (limited to 'test/run.py')
-rw-r--r--test/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run.py b/test/run.py
index a9dd39a..48203df 100644
--- a/test/run.py
+++ b/test/run.py
@@ -1,4 +1,3 @@
-
import subprocess
import os.path
import sys
@@ -10,12 +9,13 @@ new_env = {
'PYTHONPATH': os.path.join(this_dir, ".."),
}
+
def has_py(version):
ret = subprocess.run("which %s" % version, shell=True, stdout=subprocess.DEVNULL)
return ret.returncode == 0
-def run_test(versions):
+def run_test(versions):
found = False
for i in versions:
if not has_py(i):