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:
Justin Mayer 2019-07-01 12:50:49 +02:00
commit 7a9c38d882

View file

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