Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

one minus command testing line

Daniel Grana1f50c24b6cde
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)