one minus command testing line

This commit is contained in:
Daniel Grana 2009-08-30 01:55:39 -03:00
parent 8ef2cf0add
commit 1f50c24b6c
1 changed files with 1 additions and 2 deletions

View File

@ -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)