From 1f137150f8d4e01386c8c8ffacdcf5e556cea427 Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Sun, 21 Jun 2015 14:52:38 +1000 Subject: [PATCH] Fix test command invocation causing ERROR Currently, running the test suite via the test command (pythonX.Y setup.py test) produces the following error: ``` ERROR: file not found: test ``` This change tweaks initialize_options to match the code described upstream [1]. [1] https://pytest.org/latest/goodpractises.html --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ce35314fb..954109501 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) - self.pytest_args = None + self.pytest_args = [] def finalize_options(self): TestCommand.finalize_options(self)