mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
replace os.mknod with open for macos and windows compatibility
This commit is contained in:
parent
7b123d8e6c
commit
c988d6aaa2
1 changed files with 3 additions and 3 deletions
|
|
@ -35,12 +35,12 @@ class TestServer(unittest.TestCase):
|
|||
self.server)
|
||||
handler.base_path = self.temp_output
|
||||
|
||||
os.mknod(os.path.join(self.temp_output, 'foo.html'))
|
||||
open(os.path.join(self.temp_output, 'foo.html'), 'a').close()
|
||||
os.mkdir(os.path.join(self.temp_output, 'foo'))
|
||||
os.mknod(os.path.join(self.temp_output, 'foo', 'index.html'))
|
||||
open(os.path.join(self.temp_output, 'foo', 'index.html'), 'a').close()
|
||||
|
||||
os.mkdir(os.path.join(self.temp_output, 'bar'))
|
||||
os.mknod(os.path.join(self.temp_output, 'bar', 'index.html'))
|
||||
open(os.path.join(self.temp_output, 'bar', 'index.html'), 'a').close()
|
||||
|
||||
os.mkdir(os.path.join(self.temp_output, 'baz'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue