summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth M Morton <seth.m.morton@gmail.com>2016-05-02 23:45:22 -0700
committerSeth M Morton <seth.m.morton@gmail.com>2016-05-02 23:45:22 -0700
commitccbc4263016b057db18dc224bdcefcdc3e0ec54b (patch)
tree7595ac09b7ad30897e4a1bc3fb93d733175debf2
parent6df122afa36c24f30908f4b706d61a1ec97cadcd (diff)
downloadnatsort-ccbc4263016b057db18dc224bdcefcdc3e0ec54b.tar.gz
Fixed testing bug with Python 2.6.
-rw-r--r--setup.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index f9cced8..cdb52a0 100644
--- a/setup.py
+++ b/setup.py
@@ -20,11 +20,14 @@ class PyTest(TestCommand):
def run_tests(self):
# import here, cause outside the eggs aren't loaded
+ if sys.version[:3] == '2.6':
+ flakes_pep8 = []
+ else:
+ flakes_pep8 = ['--flakes', '--pep8']
import pytest
- return pytest.main(['--cov', 'natsort',
+ return pytest.main(flakes_pep8 +
+ ['--cov', 'natsort',
'--cov-report', 'term-missing',
- '--flakes',
- '--pep8',
# '-s',
# '--failed',
# '-v',