From 4da40371768df6dc856ea9cf0fafc121d98c3b8a Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 4 Jul 2014 17:36:00 -0700 Subject: [PATCH] Set the test_suite variable to avoid TypeError in setuptools --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c3ebaaa5..739ad4bf 100755 --- a/setup.py +++ b/setup.py @@ -84,9 +84,12 @@ tests_require = [ class PyTest(TestCommand): + def initialize_options(self): + TestCommand.initialize_options(self) + self.test_suite = 'tests' + def finalize_options(self): TestCommand.finalize_options(self) - self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded