mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Skip TestServer test on non-Linux platforms
The os.mknod() call in the `test_get_path_that_exists` test causes an error on non-Linux platforms such as macOS and Windows.
This commit is contained in:
parent
80540281bc
commit
7a9c38d882
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import sys
|
||||
from shutil import rmtree
|
||||
from tempfile import mkdtemp
|
||||
|
||||
|
|
@ -17,6 +18,7 @@ class MockServer(object):
|
|||
pass
|
||||
|
||||
|
||||
@unittest.skipUnless(sys.platform.startswith("linux"), "requires Linux")
|
||||
class TestServer(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue