summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.py')
-rwxr-xr-xtests/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run.py b/tests/run.py
index 8d2a828a0..e8cf787ff 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -15,7 +15,7 @@ import sys
from os import path, chdir, listdir, environ
import shutil
-import six
+from six import PY3
testroot = path.dirname(__file__) or '.'
@@ -29,7 +29,7 @@ else:
shutil.rmtree(newroot, ignore_errors=True)
-if six.PY3:
+if PY3:
print('Copying and converting sources to build/lib/tests...')
from distutils.util import copydir_run_2to3
copydir_run_2to3(testroot, newroot)