diff --git a/scrapy/tests/test_commands.py b/scrapy/tests/test_commands.py index 050892478..0d1e79788 100644 --- a/scrapy/tests/test_commands.py +++ b/scrapy/tests/test_commands.py @@ -22,8 +22,7 @@ class ProjectTest(unittest.TestCase): def call(self, *new_args, **kwargs): out = os.tmpfile() - args = [sys.executable, '-m', 'scrapy.command.cmdline'] - args.extend(new_args) + args = (sys.executable, '-m', 'scrapy.command.cmdline') + new_args return subprocess.call(args, stdout=out, stderr=out, cwd=self.cwd, \ env=self.env, **kwargs)