Scrapy, a fast high-level web crawling & scraping framework for Python.
change os.mknod() for open()
palegoc702c5301523
diff --git a/tests/test_commands.py b/tests/test_commands.pyindex 5755b3881..8edccd4bd 100644--- a/tests/test_commands.py+++ b/tests/test_commands.py@@ -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'):+ passassert exists(join(self.tmpl_proj, 'root_template'))args = ['--set', 'TEMPLATES_DIR=%s' % self.tmpl]