From 1e644303ba0977a6bb7978db0d89900b52440dd8 Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: Jan 17 2019 10:52:32 +0000 Subject: Allow setup.py to run tests on Python 3 --- diff --git a/setup.py b/setup.py index 8753924..7131e4d 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,11 @@ class PyTest(Command): pass def run(self): import subprocess - errno = subprocess.call(['py.test', 'testing']) + import sys + if (sys.version_info > (3, 0)): + errno = subprocess.call(['pytest-3']) + else: + errno = subprocess.call(['py.test']) raise SystemExit(errno)