Merge pull request #471 from stanhu/fix-pytest

Set the test_suite variable to avoid TypeError in setuptools
This commit is contained in:
Xavier Ordoquy 2015-02-13 01:56:04 +01:00
commit 4b5afd6448
1 changed files with 4 additions and 1 deletions

View File

@ -82,9 +82,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