change os.mknod() for open()

os.mknod() is a privileged command on OS X, making the test fail
This commit is contained in:
palego 2016-01-03 14:33:42 +01:00
parent 1b435b2887
commit c702c53015
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ class StartprojectTemplatesTest(ProjectTest):
def test_startproject_template_override(self):
copytree(join(scrapy.__path__[0], 'templates'), self.tmpl)
os.mknod(join(self.tmpl_proj, 'root_template'))
with open(join(self.tmpl_proj, 'root_template'), 'w'):
pass
assert exists(join(self.tmpl_proj, 'root_template'))
args = ['--set', 'TEMPLATES_DIR=%s' % self.tmpl]